Don't block loading styles from scripts with only a Default style

Originally committed to SVN as r6099.
This commit is contained in:
Thomas Goyne 2011-12-22 21:25:00 +00:00
parent f809fa4104
commit 400b8252e9

View file

@ -789,7 +789,7 @@ void DialogStyleManager::OnCurrentImport(wxCommandEvent &) {
// Get styles
wxArrayString styles = temp.GetStyles();
if (styles.Count() == 0 || (styles.Count() == 1 && styles[0] == "Default")) {
if (styles.empty()) {
wxMessageBox(_("The selected file has no available styles."),_("Error Importing Styles"),wxOK);
return;
}