]> git.saurik.com Git - wxWidgets.git/commitdiff
Cast needed to fix compilation on 10.4 --This line, and those below,
authorKevin Ollivier <kevino@theolliviers.com>
Sat, 28 Feb 2009 00:19:59 +0000 (00:19 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sat, 28 Feb 2009 00:19:59 +0000 (00:19 +0000)
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

src/osx/cocoa/printdlg.mm

index b2c577e0153207767a0976720a84db2df39da5f1..d10cea723a970cd1fbd07a3827a3ae52966ac729 100644 (file)
@@ -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();