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();
|
wxBeginBusyCursor();
|
||||||
|
|
||||||
wxWindow *win = CreateAbortWindow(parent, printout);
|
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 = win;
|
||||||
sm_abortWindow->Show(TRUE);
|
sm_abortWindow->Show(TRUE);
|
||||||
wxYield();
|
wxSafeYield(win,true);
|
||||||
|
|
||||||
printout->OnBeginPrinting();
|
printout->OnBeginPrinting();
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
{
|
{
|
||||||
GrafPtr thePort ;
|
GrafPtr thePort ;
|
||||||
GetPort( &thePort ) ;
|
GetPort( &thePort ) ;
|
||||||
wxYield() ;
|
wxSafeYield(win,true);
|
||||||
SetPort( thePort ) ;
|
SetPort( thePort ) ;
|
||||||
|
|
||||||
dc->StartPage();
|
dc->StartPage();
|
||||||
|
@@ -139,7 +139,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
wxBeginBusyCursor();
|
wxBeginBusyCursor();
|
||||||
|
|
||||||
wxWindow *win = CreateAbortWindow(parent, printout);
|
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 = win;
|
||||||
sm_abortWindow->Show(TRUE);
|
sm_abortWindow->Show(TRUE);
|
||||||
wxYield();
|
wxSafeYield(win,true);
|
||||||
|
|
||||||
printout->OnBeginPrinting();
|
printout->OnBeginPrinting();
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
{
|
{
|
||||||
GrafPtr thePort ;
|
GrafPtr thePort ;
|
||||||
GetPort( &thePort ) ;
|
GetPort( &thePort ) ;
|
||||||
wxYield() ;
|
wxSafeYield(win,true);
|
||||||
SetPort( thePort ) ;
|
SetPort( thePort ) ;
|
||||||
|
|
||||||
dc->StartPage();
|
dc->StartPage();
|
||||||
|
Reference in New Issue
Block a user