]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagtiff.cpp
wxBORDER_THEME now means 'use an appropriate themed border' on all plaforms
[wxWidgets.git] / src / common / imagtiff.cpp
index 49c76fba7c5b59dec3eae2ddd760f570b89724af..c956f6e2d1292a22d6a7217e48d465a7ba795a74 100644 (file)
@@ -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));
         }
     }