From 622f7a49ef5ddf9a47096e14bf1f8d93be3c8668 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Sep 2008 16:27:43 +0000 Subject: [PATCH] use factor of 10, not 100, to convert mm to cm after mm2inches was fixed in r55800 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagbmp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 4380d0b2d1..807d3a7067 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -195,8 +195,8 @@ bool wxBMPHandler::SaveDib(wxImage *image, case wxIMAGE_RESOLUTION_INCHES: // convert resolution in inches to resolution in centimeters - hres = (wxUint32)(100*mm2inches*hres); - vres = (wxUint32)(100*mm2inches*vres); + hres = (wxUint32)(10*mm2inches*hres); + vres = (wxUint32)(10*mm2inches*vres); // fall through to convert it to resolution in meters case wxIMAGE_RESOLUTION_CM: -- 2.45.2