switching to safe yields, because we got into loops when handling print document apple events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user