fix gcc warnings about float/double to int conversion after the latest changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user