mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-03 16:07:19 +01:00
Printers, fix page orientation when user has not changed job options of cups printer
git-svn-id: trunk@19003 -
This commit is contained in:
parent
d92087e835
commit
36cd39a33d
@ -757,7 +757,9 @@ begin
|
|||||||
i:=GetAttributeInteger('orientation-requested-default',3);
|
i:=GetAttributeInteger('orientation-requested-default',3);
|
||||||
//Get selected orientation or Default if not defined
|
//Get selected orientation or Default if not defined
|
||||||
i:=StrToIntDef(cupsGetOption('orientation-requested'),i);
|
i:=StrToIntDef(cupsGetOption('orientation-requested'),i);
|
||||||
//Calc result
|
// check if rotation is automatic or out-of-range
|
||||||
|
if not (i in [3,4,5,6]) then
|
||||||
|
i:=3; // yep, then for us this means portait
|
||||||
fCachedOrientation:=TPrinterOrientation(i-3);
|
fCachedOrientation:=TPrinterOrientation(i-3);
|
||||||
end;
|
end;
|
||||||
{$IFDEF UseCache}
|
{$IFDEF UseCache}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user