]> git.saurik.com Git - wxWidgets.git/commitdiff
Correction to icon index code
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jul 2001 16:27:36 +0000 (16:27 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jul 2001 16:27:36 +0000 (16:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gdiimage.cpp

index d8c8824f25b62ebe28e6e4c2adf1cce3bedf747e..5ca0afc43ff9a692e13b272ce9c4450630b1c57f 100644 (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(';'));