Suppress spurious icon-related log messages

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-01-13 14:45:56 +00:00
parent b6668c257d
commit 02dd0487d1

View 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;