- // interpret wildcards
-
- if (m_wildCard.IsEmpty())
- m_wildCard = _("All files (*)|*");
-
- wxArrayString wildDescriptions, wildFilters;
- int wild_count = wxParseFileFilter(m_wildCard, wildDescriptions, wildFilters);
-
- wxASSERT_MSG(wild_count > 0, wxT("Wrong file type descripition") );
-
- // if error parsing, add default back
- if (wildFilters.GetCount() < 1u)
- {
- wild_count = 1;
- m_wildCard = _("All files (*)|*");
- wildDescriptions.Add(_("All files (*)"));
- wildFilters.Add(wxT("*"));
- }
-