git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14252
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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,
// 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,
bool wxImage::SaveFile( const wxString& filename, int type ) const
{
#if wxUSE_STREAMS
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);
wxFileOutputStream stream(filename);
bool wxImage::SaveFile( const wxString& filename, const wxString& mimetype ) const
{
#if wxUSE_STREAMS
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);
wxFileOutputStream stream(filename);