X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f1ae4143271ae63a17e052a1a471d16e9cd8c44..79da30927621c8ab01ff9e9a834331b922e7fbd1:/src/mac/carbon/printmac.cpp diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index 08a6bf77ad..426bd42de3 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(); @@ -145,11 +144,11 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) wxEndBusyCursor(); wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent); delete dc; + return FALSE; } sm_abortWindow = win; sm_abortWindow->Show(TRUE); wxYield(); -*/ printout->OnBeginPrinting(); @@ -178,6 +177,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();