[pango] Bug 784243 - Pango gravity is not applied on markup with multiple spans.
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Bug 784243 - Pango gravity is not applied on markup with multiple spans.
- Date: Sat, 12 Aug 2017 01:37:47 +0000 (UTC)
commit 333dc12d1e538bceb059514a6236cadda23a6354
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Aug 11 18:37:17 2017 -0700
Bug 784243 - Pango gravity is not applied on markup with multiple spans.
Patch from Harioum Pratap Singh.
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 df011f6..b48b0ea 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]