summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-08-11 18:37:17 -0700
committerBehdad Esfahbod <behdad@behdad.org>2017-08-11 18:37:33 -0700
commit333dc12d1e538bceb059514a6236cadda23a6354 (patch)
tree2cecb22cbf038f66ad09faa34603caea680cfa78 /pango/pango-context.c
parentb34be4f4cd77d86fbeaa9992a6bdc2cd4278038f (diff)
downloadpango-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.c4
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;