]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/printmac.cpp
temporary fix for carbon (problems under OS 9)
[wxWidgets.git] / src / mac / printmac.cpp
index 274f8b1c9eed87f4ab1bf7dae672594611b7ca2e..b7e23a7ac85c3ca973bf0314adb28db08e8b8577 100644 (file)
@@ -179,11 +179,12 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
             }
             else
             {
             }
             else
             {
+#if !TARGET_CARBON
                 GrafPtr thePort ;
                 GetPort( &thePort ) ;
                 wxSafeYield(win,true);
                 SetPort( thePort ) ;
                 GrafPtr thePort ;
                 GetPort( &thePort ) ;
                 wxSafeYield(win,true);
                 SetPort( thePort ) ;
-                
+#endif                
                 dc->StartPage();
                 keepGoing = printout->OnPrintPage(pn);
                 dc->EndPage();
                 dc->StartPage();
                 keepGoing = printout->OnPrintPage(pn);
                 dc->EndPage();