Correction to icon index code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -408,7 +408,7 @@ bool wxICOFileHandler::LoadIcon(wxIcon *icon,
|
||||
int iconIndex = 0;
|
||||
wxString name1(name);
|
||||
wxString strIconIndex = name.AfterLast(wxT(';'));
|
||||
if (!strIconIndex.IsEmpty())
|
||||
if (strIconIndex != name)
|
||||
{
|
||||
iconIndex = wxAtoi(strIconIndex);
|
||||
name1 = name.BeforeLast(wxT(';'));
|
||||
|
Reference in New Issue
Block a user