X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aee237983f0ccfd026bf26c574aad0516e03a2f3..6d7b547184bfdcdf67790755deb0122050b1d728:/src/mac/carbon/printmac.cpp?ds=sidebyside diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index 8b1b72ee4c..8ae0ce8f37 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -554,8 +554,8 @@ void wxMacPrintPreview::DetermineScaling(void) // use some defaults x = 8 * 72 ; y = 11 * 72 ; - ww = x * 25.4 / ppiPrinter.x ; - hh = y * 25.4 / ppiPrinter.y ; + ww = (int) (x * 25.4 / ppiPrinter.x) ; + hh = (int) (y * 25.4 / ppiPrinter.y) ; m_isOk = false ; } m_previewPrintout->SetPageSizeMM((int)ww, (int)hh);