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:
parent
087c0d5ebb
commit
26065a88bb
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user