Skip to content

Commit

Permalink
Replace comma with semicolon when apply in DialogStyleEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqr committed Apr 9, 2021
1 parent 0e00f6e commit 94c34cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dialog_style_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ std::string DialogStyleEditor::GetStyleName() const {
void DialogStyleEditor::Apply(bool apply, bool close) {
if (apply) {
std::string new_name = from_wx(StyleName->GetValue());
std::replace(new_name.begin(), new_name.end(), ',', ';');

// Get list of existing styles
std::vector<std::string> styles = store ? store->GetNames() : c->ass->GetStyles();
Expand Down

0 comments on commit 94c34cd

Please sign in to comment.