added test for correctly created wxIcon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2000-01-22 11:55:03 +00:00
parent 087c0d5ebb
commit 26065a88bb

View File

@ -173,7 +173,7 @@ int wxFileIconsTable::GetIconID(const wxString& extension, const wxString& mime)
wxTheMimeTypesManager -> GetFileTypeFromExtension(extension) :
wxTheMimeTypesManager -> GetFileTypeFromMimeType(mime);
wxIcon ic;
if (ft == NULL || (!ft -> GetIcon(&ic)))
if (ft == NULL || (!ft -> GetIcon(&ic)) || (!ic.Ok()))
{
int newid = FI_UNKNOWN;
m_HashTable.Put(extension, new wxFileIconEntry(newid));