[Libreoffice-commits] core.git: vcl/aqua
Tor Lillqvist
tml at iki.fi
Tue Jul 30 07:32:49 PDT 2013
vcl/aqua/source/gdi/salprn.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3a897cf0514612137c6b5cb57f8b1e0d9623106f
Author: Tor Lillqvist <tml at iki.fi>
Date: Tue Jul 30 17:30:10 2013 +0300
Adapt to NSPrintInfo API change
Change-Id: Idce313b30b46a81847e116c380f6fe8eb2953a35
diff --git a/vcl/aqua/source/gdi/salprn.cxx b/vcl/aqua/source/gdi/salprn.cxx
index 6b61398..a71c8d6 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();
More information about the Libreoffice-commits
mailing list