From d8f3f983596d288daa840ffb7510ffa1cc67be0f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 5 Sep 2002 19:38:13 +0000 Subject: [PATCH] Use the iconIndex in the default case too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/gdiimage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index b34abfe247..6f904e43d7 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -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 ) -- 2.47.2