mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 03:48:08 +02:00
printers, windows, check paper codes to match supported papers in case driver returns wrong counts (fineprint) from Andreas Schneider (\pub\bash0r)
git-svn-id: trunk@9950 -
This commit is contained in:
parent
8af5d78f33
commit
82ef5fc46c
@ -466,7 +466,9 @@ begin
|
||||
DC_PAPERS,@ArPapers,nil);
|
||||
if PaperC<=0 then
|
||||
raise EPrinter.CreateFmt('DoEnumPapers<DC_PAPERS> error : %d, (%s)',
|
||||
[GetLastError,SysErrorMessage(GetLastError)]);
|
||||
[GetLastError,SysErrorMessage(GetLastError)])
|
||||
else if PaperC>Lst.Count then
|
||||
PaperC := Lst.Count;
|
||||
|
||||
for i:=0 to PaperC-1 do
|
||||
Lst.Objects[i]:=TObject(ptrint(ArPapers[i]));
|
||||
|
@ -6,6 +6,7 @@ Alexander Shiyan
|
||||
Alexandre Leclerc
|
||||
Alexandru Alexandrov
|
||||
Andreas Hausladen
|
||||
Andreas Schneider
|
||||
Andrew Haines
|
||||
Andrew Johnson
|
||||
Bob Wingard
|
||||
|
Loading…
Reference in New Issue
Block a user