@@ -1013,7 +1013,7 @@ MCPrinterDialogResult MCMacOSXPrinter::DoDialog(bool p_window_modal, Window p_ow
10131013
10141014 Boolean t_accepted;
10151015 t_accepted = false ;
1016- OSErr t_err;
1016+ MCPrinterDialogResult t_err;
10171017
10181018 if (!MCModeMakeLocalWindows ())
10191019 {
@@ -1043,11 +1043,11 @@ MCPrinterDialogResult MCMacOSXPrinter::DoDialog(bool p_window_modal, Window p_ow
10431043 }
10441044 if (t_success)
10451045 {
1046- t_err = noErr ;
1046+ t_err = PRINTER_DIALOG_RESULT_OKAY ;
10471047 t_accepted = (Boolean)t_result;
10481048 }
10491049 else
1050- t_err = errAborted ;
1050+ t_err = PRINTER_DIALOG_RESULT_ERROR ;
10511051 }
10521052 else
10531053 {
@@ -1085,21 +1085,23 @@ MCPrinterDialogResult MCMacOSXPrinter::DoDialog(bool p_window_modal, Window p_ow
10851085 if (t_result == kMCPlatformPrintDialogResultError )
10861086 {
10871087 PDEBUG (stderr, " DoDialog: Error occured\n " );
1088- return PRINTER_DIALOG_RESULT_ERROR ;
1088+ t_err = PRINTER_DIALOG_RESULT_ERROR ;
10891089 }
10901090 else if (t_result == kMCPlatformPrintDialogResultSuccess )
10911091 {
10921092 PDEBUG (stderr, " DoDialog: SetProperties\n " );
10931093 SetProperties (p_is_settings);
10941094 PDEBUG (stderr, " DoDialog: Returning OKAY\n " );
1095- return PRINTER_DIALOG_RESULT_OKAY ;
1095+ t_err = PRINTER_DIALOG_RESULT_OKAY ;
10961096 }
10971097 else
10981098 {
10991099 PDEBUG (stderr, " DoDialog: Returning Cancel\n " );
1100- return PRINTER_DIALOG_RESULT_CANCEL ;
1100+ t_err = PRINTER_DIALOG_RESULT_CANCEL ;
11011101 }
11021102 }
1103+
1104+ return t_err;
11031105}
11041106
11051107// /////////////////////////////////////////////////////////////////////////////
0 commit comments