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
This commit is contained in:
Robin Dunn 2002-09-05 19:38:13 +00:00
parent db54b04615
commit d8f3f98359

View File

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