From 0fa0d9d17e44d6d0c35801099598da7cd423f366 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 18 Jul 2009 03:58:22 +0000 Subject: [PATCH] Add some parentheses for clarity. Originally committed to SVN as r3162. --- aegisub/src/dialog_style_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_style_editor.cpp b/aegisub/src/dialog_style_editor.cpp index 9527e32ef..868ea393c 100644 --- a/aegisub/src/dialog_style_editor.cpp +++ b/aegisub/src/dialog_style_editor.cpp @@ -437,7 +437,7 @@ void DialogStyleEditor::Apply (bool apply,bool close) { // Check if style name is unique for (unsigned int i=0;iass->GetStyle(styles[i]) != style) || (!isLocal && store->GetStyle(styles[i]) != style)) { + if ((isLocal && (grid->ass->GetStyle(styles[i]) != style)) || (!isLocal && (store->GetStyle(styles[i]) != style))) { wxMessageBox(_T("There is already a style with this name. Please choose another name."),_T("Style name conflict."),wxICON_ERROR); return; }