LCL, patch to reset cached pen width between documents and pages, from Anton Kavalenka, issue #13356

git-svn-id: trunk@19255 -
This commit is contained in:
jesus 2009-04-06 18:54:19 +00:00
parent 1f9ba7214a
commit 55de292278

View File

@ -1242,7 +1242,7 @@ begin
if Assigned(fPsUnicode) then
FreeAndNil(fPsUnicode);
Self.fcPenWidth:=0;
Self.fcPenWidth:=-2; // prevent cached line width affect new page
end;
procedure TPostScriptPrinterCanvas.NewPage;
@ -1253,6 +1253,9 @@ begin
Write('showpage');
Write('%%'+Format('Page: %d %d',[PageNumber, PageNumber]));
write('newpath');
Self.fcPenWidth:=-1; // prevent cached line width affect new page
UpdateLineWidth;
end;
//Move the current position