diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index 274f8b1c9e..b7e23a7ac8 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -179,11 +179,12 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) } else { +#if !TARGET_CARBON GrafPtr thePort ; GetPort( &thePort ) ; wxSafeYield(win,true); SetPort( thePort ) ; - +#endif dc->StartPage(); keepGoing = printout->OnPrintPage(pn); dc->EndPage(); diff --git a/src/mac/printmac.cpp b/src/mac/printmac.cpp index 274f8b1c9e..b7e23a7ac8 100644 --- a/src/mac/printmac.cpp +++ b/src/mac/printmac.cpp @@ -179,11 +179,12 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) } else { +#if !TARGET_CARBON GrafPtr thePort ; GetPort( &thePort ) ; wxSafeYield(win,true); SetPort( thePort ) ; - +#endif dc->StartPage(); keepGoing = printout->OnPrintPage(pn); dc->EndPage();