From 26065a88bb437866f1c66e96e0b7287f06bacbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 22 Jan 2000 11:55:03 +0000 Subject: [PATCH] added test for correctly created wxIcon git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/filedlgg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 905f9d9bd9..e079149348 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -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));