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
+3 -2
View File
@@ -27,8 +27,9 @@ IMPLEMENT_REFLECTION(ImageStyle) {
}
int ImageStyle::update(Context& ctx) {
return Style ::update(ctx)
| default_image.update(ctx) * CHANGE_DEFAULT;
int changes = Style::update(ctx);
changes |= default_image.update(ctx) * CHANGE_DEFAULT;
return changes;
}
// ----------------------------------------------------------------------------- : ImageValue