]> git.saurik.com Git - wxWidgets.git/commitdiff
warning fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2003 14:05:48 +0000 (14:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Jul 2003 14:05:48 +0000 (14:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index 3e526cd611d42da36ddd04db0f3667ae4d7048de..d528b92b1ea9e0a7737a8d54f4fdc95b41cbd84c 100644 (file)
@@ -871,8 +871,10 @@ wxGenericFileDialog::wxGenericFileDialog(wxWindow *parent,
 
     // interpret wildcards
     wxArrayString wildDescriptions, wildFilters;
-    int wild_count = ParseWildcard(m_wildCard, wildDescriptions, wildFilters);
-    wxASSERT_MSG(wild_count > 0, wxT("Wrong file type descripition") );
+    if ( !ParseWildcard(m_wildCard, wildDescriptions, wildFilters) )
+    {
+        wxFAIL_MSG( wxT("Wrong file type descripition") );
+    }
 
     // layout