X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/595f3eefabf6d3291d6ffc22beecaba14de804f1..f823cacbdaebf37a78d1caf142ca5fdbc5a945a1:/src/mac/carbon/dcprint.cpp diff --git a/src/mac/carbon/dcprint.cpp b/src/mac/carbon/dcprint.cpp index 1f36616c8f..6c32de8ad0 100644 --- a/src/mac/carbon/dcprint.cpp +++ b/src/mac/carbon/dcprint.cpp @@ -150,8 +150,8 @@ wxPrinterDC::wxPrinterDC(const wxPrintData& printdata) m_ok = FALSE; return; } - m_maxX = rPaper.right - rPaper.left ; - m_maxY = rPaper.bottom - rPaper.top ; + m_maxX = wxCoord(rPaper.right - rPaper.left) ; + m_maxY = wxCoord(rPaper.bottom - rPaper.top); #else m_maxX = (**(THPrint)m_printData.m_macPrintSettings).rPaper.right - (**(THPrint)m_printData.m_macPrintSettings).rPaper.left ; m_maxY = (**(THPrint)m_printData.m_macPrintSettings).rPaper.bottom - (**(THPrint)m_printData.m_macPrintSettings).rPaper.top ;