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:
Julian Smart
2001-07-17 16:27:36 +00:00
parent ff9aab3c75
commit b642d4570d

View File

@@ -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(';'));