From 8e5c6521900d299fa3714f5ce9071cd955f88c83 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 10 Nov 2004 21:16:44 +0000 Subject: [PATCH] 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 --- src/generic/dirctrlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } } -- 2.47.2