From: Kevin Ollivier Date: Sat, 28 Feb 2009 00:19:59 +0000 (+0000) Subject: Cast needed to fix compilation on 10.4 --This line, and those below, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9d5cfd0e64a2c09d957517405758de680806e674 Cast needed to fix compilation on 10.4 --This line, and those below, will be ignored-- M src/osx/cocoa/printdlg.mm git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/printdlg.mm b/src/osx/cocoa/printdlg.mm index b2c577e015..d10cea723a 100644 --- a/src/osx/cocoa/printdlg.mm +++ b/src/osx/cocoa/printdlg.mm @@ -67,7 +67,7 @@ int wxMacPrintDialog::ShowModal() NSPrintPanel* panel = [NSPrintPanel printPanel]; NSPrintInfo* printInfo = ((wxOSXCocoaPrintData*)m_printDialogData.GetPrintData().GetNativeData())->GetNSPrintInfo(); - if ( [panel runModalWithPrintInfo:printInfo] == NSOKButton ) + if ( (NSInteger)[panel runModalWithPrintInfo:printInfo] == NSOKButton ) { result = wxID_OK; m_printDialogData.GetPrintData().ConvertFromNative();