mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 06:39:31 +01:00 
			
		
		
		
	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:
		
							parent
							
								
									1f9ba7214a
								
							
						
					
					
						commit
						55de292278
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user