#endif
}
}
- return true ;
+ return false;
}
void wxIcon::CopyFromBitmap( const wxBitmap& bmp )
int desiredWidth, int desiredHeight )
{
wxIcon icon ;
- icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) ;
- bitmap->CopyFromIcon( icon ) ;
-
- return bitmap->Ok() ;
+ if ( icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) )
+ {
+ bitmap->CopyFromIcon( icon ) ;
+ return bitmap->Ok() ;
+ }
+ return false;
}