diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-07-30 17:30:10 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-07-30 17:31:45 +0300 |
commit | 3a897cf0514612137c6b5cb57f8b1e0d9623106f (patch) | |
tree | ddd273411d75a2c89c5af5473a186b13ac0e93d2 /vcl/aqua | |
parent | 38e54583bcf07a71974777d13d2cf98519c8635b (diff) |
Adapt to NSPrintInfo API change
Change-Id: Idce313b30b46a81847e116c380f6fe8eb2953a35
Diffstat (limited to 'vcl/aqua')
-rw-r--r-- | vcl/aqua/source/gdi/salprn.cxx | 4 |
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(); |