X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0f2dd1a543b8e868b60214d0adc0d77b2297783..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/dcprint.cpp?ds=sidebyside diff --git a/src/mac/carbon/dcprint.cpp b/src/mac/carbon/dcprint.cpp index aacf643f19..ccc58d99ff 100644 --- a/src/mac/carbon/dcprint.cpp +++ b/src/mac/carbon/dcprint.cpp @@ -217,7 +217,7 @@ void wxMacCarbonPrinterDC::StartPage( wxPrinterDC* dc ) PMGetAdjustedPaperRect( native->m_macPageFormat , &paperRect ) ; // make sure (0,0) is at the upper left of the printable area (wx conventions) // Core Graphics initially has the lower left of the paper as 0,0 - CGContextTranslateCTM( pageContext , -paperRect.left , paperRect.bottom ) ; + CGContextTranslateCTM( pageContext , (CGFloat) -paperRect.left , (CGFloat) paperRect.bottom ) ; CGContextScaleCTM( pageContext , 1 , -1 ) ; } // since this is a non-critical error, we set the flag back