git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35319
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxMAC_USE_CORE_GRAPHICS
CGContextTranslateCTM( pageContext , 0 , rPage.bottom - rPage.top ) ;
CGContextScaleCTM( pageContext , 1 , -1 ) ;
#if wxMAC_USE_CORE_GRAPHICS
CGContextTranslateCTM( pageContext , 0 , rPage.bottom - rPage.top ) ;
CGContextScaleCTM( pageContext , 1 , -1 ) ;
+ CGContextSaveGState( pageContext ) ;
#else
dc->m_macLocalOrigin.x = (int) rPage.left;
dc->m_macLocalOrigin.y = (int) rPage.top;
#else
dc->m_macLocalOrigin.x = (int) rPage.left;
dc->m_macLocalOrigin.y = (int) rPage.top;
wxPrinterDC::~wxPrinterDC(void)
{
wxPrinterDC::~wxPrinterDC(void)
{
+#if wxMAC_USE_CORE_GRAPHICS
+ // this context was borrowed
+ ((wxMacCGContext*)(m_graphicContext))->SetNativeContext( NULL ) ;
+#endif
delete m_nativePrinterDC ;
}
delete m_nativePrinterDC ;
}