Add some parentheses for clarity.
Originally committed to SVN as r3162.
This commit is contained in:
parent
6608ff47b5
commit
0fa0d9d17e
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ void DialogStyleEditor::Apply (bool apply,bool close) {
|
|||
// Check if style name is unique
|
||||
for (unsigned int i=0;i<styles.Count();i++) {
|
||||
if (newStyleName.CmpNoCase(styles[i]) == 0) {
|
||||
if ((isLocal && grid->ass->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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue