]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/printmac.cpp
Applied patch [ 681893 ] Combobox in toolbar
[wxWidgets.git] / src / mac / printmac.cpp
index 1240fd6622e3fb693bb9d06f44c205d0d6baf3cc..60d15137cff0c1269f91d9f91133a0d9174d1b0f 100644 (file)
@@ -139,7 +139,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
   wxBeginBusyCursor();
 
   wxWindow *win = CreateAbortWindow(parent, printout);
   wxBeginBusyCursor();
 
   wxWindow *win = CreateAbortWindow(parent, printout);
-  wxYield();
+  wxSafeYield(win,true);
 
   if (!win)
   {
 
   if (!win)
   {
@@ -150,7 +150,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
   }
   sm_abortWindow = win;
   sm_abortWindow->Show(TRUE);
   }
   sm_abortWindow = win;
   sm_abortWindow->Show(TRUE);
-  wxYield();
+  wxSafeYield(win,true);
 
   printout->OnBeginPrinting();
   
 
   printout->OnBeginPrinting();
   
@@ -181,8 +181,8 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
       {
                GrafPtr thePort ;
                GetPort( &thePort ) ;
       {
                GrafPtr thePort ;
                GetPort( &thePort ) ;
-               wxYield() ;
-               SetPort( thePort ) ;
+               wxSafeYield(win,true);
+        SetPort( thePort ) ;
 
         dc->StartPage();
         keepGoing = printout->OnPrintPage(pn);
 
         dc->StartPage();
         keepGoing = printout->OnPrintPage(pn);