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:
blikblum 2018-07-23 00:34:07 +00:00
parent 1168572c7d
commit 526e755e0e

View File

@ -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;