mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 06:36:18 +02:00
LazReport, store used paper size
git-svn-id: trunk@40474 -
This commit is contained in:
parent
faaf316280
commit
bf7a97b65f
@ -801,11 +801,14 @@ begin
|
||||
{$Endif}
|
||||
|
||||
try
|
||||
PaperWidth:=fPrinter.PageWidth;
|
||||
PaperHeight:=fPrinter.PageHeight;
|
||||
finally
|
||||
// update paper size in std pt units
|
||||
PaperWidth := round(fPrinter.PaperSize.Width * 72 / fPrinter.XDPI);
|
||||
PaperHeight := round(fPrinter.PaperSize.Height * 72 / fPrinter.YDPI);
|
||||
except
|
||||
PaperWidth:=1;
|
||||
PaperHeight:=1;
|
||||
// let it as it was ....
|
||||
raise
|
||||
end;
|
||||
end;
|
||||
{$ifdef DbgPrinter}
|
||||
|
Loading…
Reference in New Issue
Block a user