From: Julian Smart Date: Fri, 27 Oct 2006 09:29:47 +0000 (+0000) Subject: Warning fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2786b6232c5967dd79278a20d9558d79bebc41f8 Warning fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextprint.cpp b/src/richtext/richtextprint.cpp index 0032487f4c..5319131f74 100644 --- a/src/richtext/richtextprint.cpp +++ b/src/richtext/richtextprint.cpp @@ -324,8 +324,8 @@ void wxRichTextPrintout::CalculateScaling(wxDC* dc, wxRect& textRect, wxRect& he dc->SetUserScale(overallScale, overallScale); - wxRect rect(marginLeft/scale, marginTop/scale, - (pageWidth - marginLeft - marginRight)/scale, (pageHeight - marginTop - marginBottom)/scale); + wxRect rect((int) (marginLeft/scale), (int) (marginTop/scale), + (int) ((pageWidth - marginLeft - marginRight)/scale), (int)((pageHeight - marginTop - marginBottom)/scale)); headerRect = wxRect(0, 0, 0, 0); @@ -344,7 +344,7 @@ void wxRichTextPrintout::CalculateScaling(wxDC* dc, wxRect& textRect, wxRect& he int charHeight = dc->GetCharHeight(); - int headerHeight = charHeight + headerMargin/scale; + int headerHeight = (int) (charHeight + headerMargin/scale); headerRect = wxRect(rect.x, rect.y, rect.width, headerHeight); @@ -369,7 +369,7 @@ void wxRichTextPrintout::CalculateScaling(wxDC* dc, wxRect& textRect, wxRect& he int charHeight = dc->GetCharHeight(); - int footerHeight = charHeight + footerMargin/scale; + int footerHeight = (int) (charHeight + footerMargin/scale); footerRect = wxRect(rect.x, rect.y + rect.height, rect.width, footerHeight);