From b642d4570d8ed7cfd43ebaa7c15c7c2178da52f8 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 17 Jul 2001 16:27:36 +0000 Subject: [PATCH] Correction to icon index code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gdiimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index d8c8824f25..5ca0afc43f 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -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(';')); -- 2.45.2