]> git.saurik.com Git - wxWidgets.git/commitdiff
int warning
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 5 Jul 2006 13:11:20 +0000 (13:11 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 5 Jul 2006 13:11:20 +0000 (13:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/printmac.cpp

index 8b1b72ee4c8c1017252da6553db03d7ef6a8484a..8ae0ce8f37220c18fc13015bff0027aade67d720 100644 (file)
@@ -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);