Don't block loading styles from scripts with only a Default style
Originally committed to SVN as r6099.
This commit is contained in:
parent
f809fa4104
commit
400b8252e9
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ void DialogStyleManager::OnCurrentImport(wxCommandEvent &) {
|
||||||
|
|
||||||
// Get styles
|
// Get styles
|
||||||
wxArrayString styles = temp.GetStyles();
|
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);
|
wxMessageBox(_("The selected file has no available styles."),_("Error Importing Styles"),wxOK);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue