]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mimecmn.cpp
reverted the last change (colour values changes), it cerated too many problems
[wxWidgets.git] / src / common / mimecmn.cpp
index ec98e8097c923002cc62538dea22fb719b78640b..bd85dc0a5860efe9bedbbbd7fa4e2ee23e189c87 100644 (file)
@@ -524,11 +524,11 @@ wxMimeTypesManager::GetFileTypeFromMimeType(const wxString& mimeType)
     EnsureImpl();
     wxFileType *ft = m_impl->GetFileTypeFromMimeType(mimeType);
 
-    if ( ft ) {
+    if ( !ft ) {
         // check the fallbacks
         //
-        // TODO linear search is potentially slow, perhaps we should use a sorted
-        //      array?
+        // TODO linear search is potentially slow, perhaps we should use a
+        //      sorted array?
         size_t count = m_fallbacks.GetCount();
         for ( size_t n = 0; n < count; n++ ) {
             if ( wxMimeTypesManager::IsOfType(mimeType,