git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36391
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Replaces a bitmap and mask from an icon.
bool wxImageList::Replace(int i, const wxIcon& icon)
{
// Replaces a bitmap and mask from an icon.
bool wxImageList::Replace(int i, const wxIcon& icon)
{
- bool ok = ImageList_ReplaceIcon(GetHImageList(), i, GetHiconOf(icon)) != 0;
+ bool ok = ImageList_ReplaceIcon(GetHImageList(), i, GetHiconOf(icon)) != -1;
if ( !ok )
{
wxLogLastError(wxT("ImageList_ReplaceIcon()"));
if ( !ok )
{
wxLogLastError(wxT("ImageList_ReplaceIcon()"));