mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 17:58:03 +02:00
LazReport: do not try to set printer paper info when an exception occurs in ChangePaper
git-svn-id: trunk@58598 -
This commit is contained in:
parent
1168572c7d
commit
526e755e0e
@ -7470,10 +7470,8 @@ begin
|
||||
on E:exception do
|
||||
begin
|
||||
{$ifdef DbgPrinter}
|
||||
Debugln(['Exception: selecting custom paper ']);
|
||||
Debugln('Exception: %s', [E.Message]);
|
||||
{$endif}
|
||||
Prn.SetPrinterInfo($100, AWidth, AHeight, AOr);
|
||||
Prn.FillPrnInfo(PrnInfo);
|
||||
end;
|
||||
end;
|
||||
pgSize := Prn.PaperSize;
|
||||
|
Loading…
Reference in New Issue
Block a user