]> git.saurik.com Git - wxWidgets.git/commitdiff
construct icon from wxIconLocation, not just the file name without index: this fixes...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2004 21:16:44 +0000 (21:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 10 Nov 2004 21:16:44 +0000 (21:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index e11a269bf61686d74d06345a49e73e906af953e2..2a1e1137e0ae67f60c2820c786e23576f81b6040 100644 (file)
@@ -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 );
         }
     }