From: Vadim Zeitlin Date: Wed, 10 Nov 2004 21:16:44 +0000 (+0000) Subject: construct icon from wxIconLocation, not just the file name without index: this fixes... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8e5c6521900d299fa3714f5ce9071cd955f88c83?ds=sidebyside 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 --- diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index e11a269bf6..2a1e1137e0 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -1642,7 +1642,7 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime) wxLogNull logNull; if ( ft && ft->GetIcon(&iconLoc) ) { - ic = wxIcon( iconLoc.GetFileName() ); + ic = wxIcon( iconLoc ); } }