WaE: comparison of two values with different enumeration types
Change-Id: I611eefd20043386d00984f76a28d111e1c0495f1
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user