merging r60166
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -334,7 +334,7 @@ bool wxIcon::LoadFile(
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true ;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxIcon::CopyFromBitmap( const wxBitmap& bmp )
|
void wxIcon::CopyFromBitmap( const wxBitmap& bmp )
|
||||||
@@ -353,9 +353,11 @@ bool wxICONResourceHandler::LoadFile(
|
|||||||
int desiredWidth, int desiredHeight )
|
int desiredWidth, int desiredHeight )
|
||||||
{
|
{
|
||||||
wxIcon icon ;
|
wxIcon icon ;
|
||||||
icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) ;
|
if ( icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) )
|
||||||
bitmap->CopyFromIcon( icon ) ;
|
{
|
||||||
|
bitmap->CopyFromIcon( icon ) ;
|
||||||
return bitmap->Ok() ;
|
return bitmap->Ok() ;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user