]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the iconIndex in the default case too.
authorRobin Dunn <robin@alldunn.com>
Thu, 5 Sep 2002 19:38:13 +0000 (19:38 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 5 Sep 2002 19:38:13 +0000 (19:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gdiimage.cpp

index b34abfe24742870c735d1fda5cada43f50248a67..6f904e43d70c00bf7a12299fff3baa79d2a22c95 100644 (file)
@@ -453,8 +453,8 @@ bool wxICOFileHandler::LoadIcon(wxIcon *icon,
 
     if ( !hicon )
     {
-        // take any (the first one) icon from the file by default
-        hicon = ::ExtractIcon(wxGetInstance(), nameReal, 0 /* first */);
+        // take any size icon from the file by index
+        hicon = ::ExtractIcon(wxGetInstance(), nameReal, iconIndex);
     }
 
     if ( !hicon )