]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gdiimage.cpp
correction for Mac OS X compilation
[wxWidgets.git] / 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(';'));