X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..205b0c9c6aa69c02a7774846e677910bf1609a53:/src/mac/printmac.cpp diff --git a/src/mac/printmac.cpp b/src/mac/printmac.cpp index 1240fd6622..60d15137cf 100644 --- a/src/mac/printmac.cpp +++ b/src/mac/printmac.cpp @@ -139,7 +139,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) wxBeginBusyCursor(); wxWindow *win = CreateAbortWindow(parent, printout); - wxYield(); + wxSafeYield(win,true); if (!win) { @@ -150,7 +150,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) } sm_abortWindow = win; sm_abortWindow->Show(TRUE); - wxYield(); + wxSafeYield(win,true); printout->OnBeginPrinting(); @@ -181,8 +181,8 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) { GrafPtr thePort ; GetPort( &thePort ) ; - wxYield() ; - SetPort( thePort ) ; + wxSafeYield(win,true); + SetPort( thePort ) ; dc->StartPage(); keepGoing = printout->OnPrintPage(pn);