git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62900
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !handler.LoadFile(this, stream, true/*verbose*/, index) )
return false;
- M_IMGDATA->m_type = handler.GetType();
-
// rescale the image to the specified size if needed
if ( maxWidth || maxHeight )
{
Rescale(width, height, wxIMAGE_QUALITY_HIGH);
}
+ // Set this after Rescale, which currently does not preserve it
+ M_IMGDATA->m_type = handler.GetType();
+
return true;
}