X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd94e8aa4563b22e7c66c379625a8373d20720aa..96e3c3d44aa64b301cde6184d6290bc025a0bc03:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index f533e00432..2c5ba9758d 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -274,6 +274,7 @@ wxImage wxImage::Scale( int width, int height ) const } } #endif + // In case this is a cursor, make sure the hotspot is scalled accordingly: if ( HasOption(wxIMAGE_OPTION_CUR_HOTSPOT_X) ) image.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, @@ -940,8 +941,7 @@ bool wxImage::LoadFile( const wxString& filename, const wxString& mimetype, int bool wxImage::SaveFile( const wxString& filename, int type ) const { #if wxUSE_STREAMS - if ( !HasOption(wxIMAGE_OPTION_FILENAME) ) - ((wxImage*)this)->SetOption(wxIMAGE_OPTION_FILENAME, filename); + ((wxImage*)this)->SetOption(wxIMAGE_OPTION_FILENAME, filename); wxFileOutputStream stream(filename); @@ -958,8 +958,7 @@ bool wxImage::SaveFile( const wxString& filename, int type ) const bool wxImage::SaveFile( const wxString& filename, const wxString& mimetype ) const { #if wxUSE_STREAMS - if ( !HasOption(wxIMAGE_OPTION_FILENAME) ) - ((wxImage*)this)->SetOption(wxIMAGE_OPTION_FILENAME, filename); + ((wxImage*)this)->SetOption(wxIMAGE_OPTION_FILENAME, filename); wxFileOutputStream stream(filename);