mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Consistent order of style property updates.
See #4 (which is mostly fixed by this commit)
This commit is contained in:
+19
-19
@@ -67,25 +67,25 @@ double TextStyle::getStretch() const {
|
||||
}
|
||||
|
||||
int TextStyle::update(Context& ctx) {
|
||||
return Style ::update(ctx)
|
||||
| font .update(ctx) * CHANGE_OTHER
|
||||
| symbol_font.update(ctx) * CHANGE_OTHER
|
||||
| alignment .update(ctx) * CHANGE_OTHER
|
||||
| ( padding_left .update(ctx)
|
||||
| padding_left_min .update(ctx)
|
||||
| padding_right .update(ctx)
|
||||
| padding_right_min .update(ctx)
|
||||
| padding_top .update(ctx)
|
||||
| padding_top_min .update(ctx)
|
||||
| padding_bottom .update(ctx)
|
||||
| padding_bottom_min .update(ctx)
|
||||
| line_height_soft .update(ctx)
|
||||
| line_height_hard .update(ctx)
|
||||
| line_height_line .update(ctx)
|
||||
| line_height_soft_max.update(ctx)
|
||||
| line_height_hard_max.update(ctx)
|
||||
| line_height_line_max.update(ctx)
|
||||
) * CHANGE_OTHER;
|
||||
int changes = Style::update(ctx);
|
||||
changes |= font .update(ctx) * CHANGE_OTHER;
|
||||
changes |= symbol_font.update(ctx) * CHANGE_OTHER;
|
||||
changes |= alignment .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_left .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_left_min .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_right .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_right_min .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_top .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_top_min .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_bottom .update(ctx) * CHANGE_OTHER;
|
||||
changes |= padding_bottom_min .update(ctx) * CHANGE_OTHER;
|
||||
changes |= line_height_soft .update(ctx) * CHANGE_OTHER;
|
||||
changes |= line_height_hard .update(ctx) * CHANGE_OTHER;
|
||||
changes |= line_height_line .update(ctx) * CHANGE_OTHER;
|
||||
changes |= line_height_soft_max.update(ctx) * CHANGE_OTHER;
|
||||
changes |= line_height_hard_max.update(ctx) * CHANGE_OTHER;
|
||||
changes |= line_height_line_max.update(ctx) * CHANGE_OTHER;
|
||||
return changes;
|
||||
}
|
||||
void TextStyle::initDependencies(Context& ctx, const Dependency& dep) const {
|
||||
Style ::initDependencies(ctx, dep);
|
||||
|
||||
Reference in New Issue
Block a user