git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45580
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-static const double INCHES_IN_METER = 39.3700787;
-
// ----------------------------------------------------------------------------
// local functions
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// local functions
// ----------------------------------------------------------------------------
switch ( GetResolutionFromOptions(*image, &resX, &resY) )
{
case wxIMAGE_RESOLUTION_INCHES:
switch ( GetResolutionFromOptions(*image, &resX, &resY) )
{
case wxIMAGE_RESOLUTION_INCHES:
- resX *= INCHES_IN_METER;
- resY *= INCHES_IN_METER;
+ {
+ const double INCHES_IN_METER = 10000.0 / 254;
+ resX = int(resX * INCHES_IN_METER);
+ resY = int(resY * INCHES_IN_METER);
+ }
break;
case wxIMAGE_RESOLUTION_CM:
break;
case wxIMAGE_RESOLUTION_CM: