X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f1ae4143271ae63a17e052a1a471d16e9cd8c44..f21b2fd89d02837dfd0d195f8ff0f3f5640af017:/src/mac/carbon/printmac.cpp diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index 08a6bf77ad..50c666ce95 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -136,7 +136,6 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) // Create an abort window wxBeginBusyCursor(); -/* wxWindow *win = CreateAbortWindow(parent, printout); wxYield(); @@ -149,7 +148,6 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) sm_abortWindow = win; sm_abortWindow->Show(TRUE); wxYield(); -*/ printout->OnBeginPrinting(); @@ -178,6 +176,11 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) } else { + GrafPtr thePort ; + GetPort( &thePort ) ; + wxYield() ; + SetPort( thePort ) ; + dc->StartPage(); keepGoing = printout->OnPrintPage(pn); dc->EndPage();