diff --git a/gfx/src/mac/nsDeviceContextSpecMac.cpp b/gfx/src/mac/nsDeviceContextSpecMac.cpp index 621ac77a1f7..2e2a6849fe1 100644 --- a/gfx/src/mac/nsDeviceContextSpecMac.cpp +++ b/gfx/src/mac/nsDeviceContextSpecMac.cpp @@ -63,6 +63,7 @@ nsresult theResult = NS_ERROR_FAILURE; THPrint prtRec; GrafPtr oldport; +#if !TARGET_CARBON ::GetPort(&oldport); // open the printing manager @@ -85,6 +86,7 @@ GrafPtr oldport; } } } +#endif return theResult; } @@ -98,7 +100,9 @@ PRBool isPMOpen; this->PrintManagerOpen(&isPMOpen); if(isPMOpen){ +#if !TARGET_CARBON ::PrClose(); +#endif } return NS_OK;