]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress spurious icon-related log messages
authorJulian Smart <julian@anthemion.co.uk>
Tue, 13 Jan 2004 14:45:56 +0000 (14:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 13 Jan 2004 14:45:56 +0000 (14:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index 8f0c9536e043766fe83672126af99092978abfdd..3d08cd09458896a273c7732199c603e44528e3d3 100644 (file)
@@ -1645,9 +1645,13 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime)
 
     wxIconLocation iconLoc;
     wxIcon ic;
-    if ( ft && ft->GetIcon(&iconLoc) )
+
     {
-        ic = wxIcon(iconLoc);
+        wxLogNull logNull;
+        if ( ft && ft->GetIcon(&iconLoc) )
+        {
+            ic = wxIcon(iconLoc);
+        }
     }
 
     delete ft;