Always use wxPATH_WIN for wxFileName::GetForbiddenChars

While it's possible to have files with the DOS-only forbidden characters
on other platforms, wx doesn't actually support them very well.

Closes #1489.

Originally committed to SVN as r6792.
This commit is contained in:
Thomas Goyne 2012-05-15 13:40:10 +00:00
parent ea1dbc3e8c
commit d38e02c031
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ void DialogStyleManager::OnCatalogNew() {
if (!name) return;
// Remove bad characters from the name
wxString badchars = wxFileName::GetForbiddenChars();
wxString badchars = wxFileName::GetForbiddenChars(wxPATH_DOS);
int badchars_removed = 0;
for (size_t i = 0; i < name.size(); ++i) {
if (badchars.find(name[i]) != badchars.npos) {