TPostScriptCanvas.Polyline does not flush output buffer whe color of line has not changed
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
TPostScriptCanvas.Polyline flushes output stringlist only if the color of Polyline is other than cached color value.
Patch provided.
Steps to reproduce:
I think the patch is trivial.
The code below would not paint Polyline.
cnv:=Printer.Canvas;
cnv.Pen.Color:=clRed;
cnv.MoveTo(0,0);
cnv.LineTo(100,100);
cnv.PolyLine([150,150,200,210,220,225]);
Additional information:
The patch also resets lines style and finalizes clip path with the stroke command.
Mantis conversion info:
- Mantis ID: 14535
- OS: Debian GNU/Linux
- OS Build: 5.0
- Build: r21597
- Platform: x86_64
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 21607 (#27310652)
- Target version: 0.9.30