mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 22:58:50 +02:00
Cups printers: preserve page orientation when setting default values. issue #19618
git-svn-id: trunk@31371 -
This commit is contained in:
parent
264c6db01f
commit
9b2bd8b9bb
@ -293,6 +293,7 @@ end;
|
||||
//Initialization of selected Printer options
|
||||
procedure TdlgSelectPrinter.InitPrinterOptions;
|
||||
Var St : string;
|
||||
pOr : TPrinterOrientation;
|
||||
|
||||
//Convert an Local hour to GMT hour
|
||||
function GetTimeHold : string;
|
||||
@ -310,10 +311,13 @@ Var St : string;
|
||||
begin
|
||||
if not fPropertiesSetting then
|
||||
begin
|
||||
//Preserve selected orientation - isn't stored in cups options
|
||||
pOr:=Printer.Orientation;
|
||||
//Free current options if exists
|
||||
THackCUPSPrinter(Printer).FreeOptions;
|
||||
//Initialize default Options
|
||||
THackCUPSPrinter(Printer).SetOptionsOfPrinter;
|
||||
Printer.Orientation := pOr;
|
||||
end;
|
||||
|
||||
//Copies
|
||||
|
Loading…
Reference in New Issue
Block a user