summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-07-30 17:30:10 +0300
committerTor Lillqvist <tml@collabora.com>2014-01-28 17:32:58 +0200
commitf526834c701b015ece36df75b136aeb9b81293fc (patch)
tree2fdb4878c37458317399bebe96c38f9c749a66cb /vcl
parentUse sandboxing when requested also for the app bundle in the dmg (diff)
downloadcore-f526834c701b015ece36df75b136aeb9b81293fc.tar.gz
core-f526834c701b015ece36df75b136aeb9b81293fc.zip
Adapt to NSPrintInfo API change
Change-Id: Idce313b30b46a81847e116c380f6fe8eb2953a35
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/gdi/salprn.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/aqua/source/gdi/salprn.cxx b/vcl/aqua/source/gdi/salprn.cxx
index 6b61398a87b5..a71c8d644fe9 100644
--- a/vcl/aqua/source/gdi/salprn.cxx
+++ b/vcl/aqua/source/gdi/salprn.cxx
@@ -69,7 +69,11 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) :
mpPrintInfo = [pShared copy];
[mpPrintInfo setPrinter: mpPrinter];
mePageOrientation = ([mpPrintInfo orientation] == NSLandscapeOrientation) ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT;
+#if MACOSX_SDK_VERSION >= 1090
+ [mpPrintInfo setOrientation: NSPaperOrientationPortrait];
+#else
[mpPrintInfo setOrientation: NSPortraitOrientation];
+#endif
}
mpGraphics = new AquaSalGraphics();