- 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 description") );
+ }