Kaydet (Commit) 5f27a686 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: comparison of two values with different enumeration types

Change-Id: I611eefd20043386d00984f76a28d111e1c0495f1
üst b3818f53
...@@ -66,10 +66,11 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) : ...@@ -66,10 +66,11 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) :
{ {
mpPrintInfo = [pShared copy]; mpPrintInfo = [pShared copy];
[mpPrintInfo setPrinter: mpPrinter]; [mpPrintInfo setPrinter: mpPrinter];
mePageOrientation = ([mpPrintInfo orientation] == NSLandscapeOrientation) ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT;
#if MACOSX_SDK_VERSION >= 1090 #if MACOSX_SDK_VERSION >= 1090
mePageOrientation = ([mpPrintInfo orientation] == NSPaperOrientationPortrait) ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT;
[mpPrintInfo setOrientation: NSPaperOrientationPortrait]; [mpPrintInfo setOrientation: NSPaperOrientationPortrait];
#else #else
mePageOrientation = ([mpPrintInfo orientation] == NSLandscapeOrientation) ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT;
[mpPrintInfo setOrientation: NSPortraitOrientation]; [mpPrintInfo setOrientation: NSPortraitOrientation];
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment