View Issue Details

IDProjectCategoryView StatusLast Update
0016112LazarusLCLpublic2010-03-26 20:56
ReporterAnton Kavalenka Assigned ToJesus Reyes  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSDebian GNU/Linux 
Product Version0.9.29 (SVN) 
Target Version0.9.30Fixed in Version0.9.29 (SVN) 
Summary0016112: LCL: TPostScriptCanvas after fix r23928 cannot produce 2 consecutive LineTo() after single Moveto()
DescriptionInvalid postscript created with attached sample program
Unconditional 'stroke' after each lineto is wrong.

GhostScript says:
Error: /nocurrentpoint in --lineto--
Steps To ReproduceRun the attached application. Produced post-script is erroneous.

%%Page: 1 1
%DoMoveTo(100,100)
6.00 835.98 moveto
%DoLineTo(100,400)
0.612 0.612 0.612 setrgbcolor % clBtnShadow
0.060 setlinewidth
6.00 817.98 lineto stroke
%DoLineTo(200,110)
0.875 0.875 0.875 setrgbcolor % clBtnFace
12.00 835.38 lineto stroke
%DoLineTo(200,410)
12.00 817.38 lineto stroke
stroke
showpage
%%EOF



Additional Information'stroke' after lineto have to appear if canvas state changed (line style, color, fill color etc).

Consecutive lineto's have to be called without stroke if no changes in line drawing mode.

Obviously I can change 2 lineto with 1 polyline, but other scenarios may exist.
TagsNo tags attached.
Fixed in Revision24213
LazTarget0.9.30
WidgetsetGTK 2
Attached Files

Activities

2010-03-25 19:12

 

laztest63.zip (2,333 bytes)

Anton Kavalenka

2010-03-26 20:56

reporter   ~0036128

Thank you, all my tests passed.

Issue History

Date Modified Username Field Change
2010-03-25 19:12 Anton Kavalenka New Issue
2010-03-25 19:12 Anton Kavalenka File Added: laztest63.zip
2010-03-25 19:12 Anton Kavalenka Widgetset => GTK 2
2010-03-25 20:00 Jesus Reyes Status new => assigned
2010-03-25 20:00 Jesus Reyes Assigned To => Jesus Reyes
2010-03-25 21:21 Jesus Reyes Fixed in Revision => 24213
2010-03-25 21:21 Jesus Reyes LazTarget => 0.9.30
2010-03-25 21:21 Jesus Reyes Status assigned => resolved
2010-03-25 21:21 Jesus Reyes Fixed in Version => 0.9.29 (SVN)
2010-03-25 21:21 Jesus Reyes Resolution open => fixed
2010-03-25 21:21 Jesus Reyes Target Version => 0.9.30
2010-03-26 20:56 Anton Kavalenka Status resolved => closed
2010-03-26 20:56 Anton Kavalenka Note Added: 0036128