mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 03:18:55 +02:00
fixed printer height, width without selected printer from Olivier
git-svn-id: trunk@6233 -
This commit is contained in:
parent
d5414fe864
commit
d6ec9d4553
@ -636,6 +636,8 @@ begin
|
||||
if (fOwnedPrinter.Printers.Count>0) and
|
||||
((fSupportedPapers.Count=0) or (fLastPrinterIndex<>fOwnedPrinter.PrinterIndex)) then
|
||||
begin
|
||||
fOwnedPrinter.SelectCurrentPrinterOrDefault;
|
||||
|
||||
fSupportedPapers.Clear;
|
||||
fOwnedPrinter.DoEnumPapers(fSupportedPapers);
|
||||
fLastPrinterIndex:=fOwnedPrinter.PrinterIndex;
|
||||
|
Loading…
Reference in New Issue
Block a user