Consistent order of style property updates.

See #4 (which is mostly fixed by this commit)
This commit is contained in:
Twan van Laarhoven
2020-05-10 00:20:37 +02:00
parent 420c329bc4
commit 1c35183839
8 changed files with 55 additions and 51 deletions
+4 -3
View File
@@ -40,9 +40,10 @@ IMPLEMENT_REFLECTION(MultipleChoiceStyle) {
}
int MultipleChoiceStyle::update(Context& ctx) {
return ChoiceStyle::update(ctx)
| direction.update(ctx) * CHANGE_OTHER
| spacing.update(ctx) * CHANGE_OTHER;
int changes = ChoiceStyle::update(ctx);
changes |= direction.update(ctx) * CHANGE_OTHER;
changes |= spacing.update(ctx) * CHANGE_OTHER;
return changes;
}
// ----------------------------------------------------------------------------- : MultipleChoiceValue