diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-11-13 15:18:13 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-11-22 12:14:03 +0100 |
commit | 8a2be89620a56a658fe69638517cbacebeec7f30 (patch) | |
tree | cf9675775c53975ad86ccdac5af6fc6adcc5d625 /vcl | |
parent | de80d677c49b445b4acea8a99aea25b582ceece0 (diff) |
Apparent fix for what seems like a copy-paste error by me in 2014
(in 5f27a6864420815d0d0abc409333fec963536faf.) Whether this has
anything to do with tdf#92190 is unclear. Some experimentation indeed
seems to indicate that it fixes the problem, but I am not 100% sure.
Reproducing the bug fully realistically would require using a printer
with actual Letter size paper.
Thanks to Telesto for noticing this copy-paste issue.
Change-Id: I853aaaf2b7a19380dce908f93349b001bf3feb92
Reviewed-on: https://gerrit.libreoffice.org/44679
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit 9f8429d81c08cc40d5b1210cb6e4b383316cdc75)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salprn.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 4eba68e093bd..07671bf6201f 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -65,7 +65,7 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) : mpPrintInfo = [pShared copy]; [mpPrintInfo setPrinter: mpPrinter]; #if MACOSX_SDK_VERSION >= 1090 - mePageOrientation = ([mpPrintInfo orientation] == NSPaperOrientationPortrait) ? Orientation::Landscape : Orientation::Portrait; + mePageOrientation = ([mpPrintInfo orientation] == NSPaperOrientationLandscape) ? Orientation::Landscape : Orientation::Portrait; [mpPrintInfo setOrientation: NSPaperOrientationPortrait]; #else mePageOrientation = ([mpPrintInfo orientation] == NSLandscapeOrientation) ? Orientation::Landscape : Orientation::Portrait; |