]> git.saurik.com Git - wxWidgets.git/commitdiff
added test for correctly created wxIcon
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 22 Jan 2000 11:55:03 +0000 (11:55 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 22 Jan 2000 11:55:03 +0000 (11:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index 905f9d9bd900cb9205bf864bdf85ecfe179f92ff..e079149348cc9e4fb564a31fb3cc9ae3ee264a9a 100644 (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));