construct icon from wxIconLocation, not just the file name without index: this fixes icons display under MSW (replaces patch 1047225)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-11-10 21:16:44 +00:00
parent cea15ffc7e
commit 8e5c652190

View File

@@ -1642,7 +1642,7 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime)
wxLogNull logNull; wxLogNull logNull;
if ( ft && ft->GetIcon(&iconLoc) ) if ( ft && ft->GetIcon(&iconLoc) )
{ {
ic = wxIcon( iconLoc.GetFileName() ); ic = wxIcon( iconLoc );
} }
} }