From a8e25474e42a8af7cfc0071bd3149afa42d7b60b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Jul 2003 14:05:48 +0000 Subject: [PATCH] warning fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/filedlgg.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/generic/filedlgg.cpp b/src/generic/filedlgg.cpp index 3e526cd611..d528b92b1e 100644 --- a/src/generic/filedlgg.cpp +++ b/src/generic/filedlgg.cpp @@ -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 -- 2.45.2