X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37ba70a520519fd2fe4f11400f1383fa37ae7cd9..78cd9c69eb3f4c158fe10ce49325d57ec05d1306:/src/common/imagtiff.cpp diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 49c76fba7c..c956f6e2d1 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -373,10 +373,10 @@ bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos { float xres, yres; if ( TIFFGetField(tif, TIFFTAG_XRESOLUTION, &xres) ) - image->SetOption(wxIMAGE_OPTION_RESOLUTIONX, xres); + image->SetOption(wxIMAGE_OPTION_RESOLUTIONX, wxRound(xres)); if ( TIFFGetField(tif, TIFFTAG_YRESOLUTION, &yres) ) - image->SetOption(wxIMAGE_OPTION_RESOLUTIONY, yres); + image->SetOption(wxIMAGE_OPTION_RESOLUTIONY, wxRound(yres)); } }