]> git.saurik.com Git - wxWidgets.git/commitdiff
fix g++ warnings for float->int conversions
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Mar 2009 09:18:42 +0000 (09:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Mar 2009 09:18:42 +0000 (09:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmprint.cpp

index e674237f88f0fe5756b0420fa562a000708c2903..ce71d5fc6d58ff30c94089792ce2f43e0381d6c3 100644 (file)
@@ -289,9 +289,9 @@ void wxHtmlPrintout::OnPreparePrinting()
     const int printAreaW = int(ppmm_h * (mm_w - m_MarginLeft - m_MarginRight));
     int printAreaH = int(ppmm_v * (mm_h - m_MarginTop - m_MarginBottom));
     if ( m_HeaderHeight )
-        printAreaH -= m_HeaderHeight + m_MarginSpace * ppmm_v;
+        printAreaH -= int(m_HeaderHeight + m_MarginSpace * ppmm_v);
     if ( m_FooterHeight )
-        printAreaH -= m_FooterHeight + m_MarginSpace * ppmm_v;
+        printAreaH -= int(m_FooterHeight + m_MarginSpace * ppmm_v);
 
     m_Renderer->SetSize(printAreaW, printAreaH);
     m_Renderer->SetHtmlText(m_Document, m_BasePath, m_BasePathIsDir);