From b47d37a99fe8b508da762e1fab59e4a42a47d993 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 17 May 2003 07:44:04 +0000 Subject: [PATCH] temporary fix for carbon (problems under OS 9) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/printmac.cpp | 3 ++- src/mac/printmac.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.47.2