Add some parentheses for clarity.

Originally committed to SVN as r3162.
This commit is contained in:
Thomas Goyne 2009-07-18 03:58:22 +00:00
parent 6608ff47b5
commit 0fa0d9d17e

View file

@ -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;
}