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:
parent
db54b04615
commit
d8f3f98359
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user