diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-08-11 18:37:17 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-08-11 18:37:33 -0700 |
commit | 333dc12d1e538bceb059514a6236cadda23a6354 (patch) | |
tree | 2cecb22cbf038f66ad09faa34603caea680cfa78 /pango/pango-context.c | |
parent | b34be4f4cd77d86fbeaa9992a6bdc2cd4278038f (diff) | |
download | pango-333dc12d1e538bceb059514a6236cadda23a6354.tar.gz |
Bug 784243 - Pango gravity is not applied on markup with multiple spans.
Patch from Harioum Pratap Singh.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r-- | pango/pango-context.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c index df011f6f..b48b0eaa 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -1334,8 +1334,6 @@ itemize_state_update_for_new_run (ItemizeState *state) * do it right now */ if (state->changed & (FONT_CHANGED | SCRIPT_CHANGED | WIDTH_CHANGED)) { - PangoGravity old_gravity = state->resolved_gravity; - /* Font-desc gravity overrides everything */ if (state->font_desc_gravity != PANGO_GRAVITY_AUTO) { @@ -1355,7 +1353,7 @@ itemize_state_update_for_new_run (ItemizeState *state) gravity_hint); } - if (old_gravity != state->resolved_gravity) + if (state->font_desc_gravity != state->resolved_gravity) { pango_font_description_set_gravity (state->font_desc, state->resolved_gravity); state->changed |= FONT_CHANGED; |