Commit 333dc12d authored by Behdad Esfahbod's avatar Behdad Esfahbod

Bug 784243 - Pango gravity is not applied on markup with multiple spans.

Patch from Harioum Pratap Singh.
parent b34be4f4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment