[pango] Bug 750383 - Issue in ellipsization when line space is mentioned
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Bug 750383 - Issue in ellipsization when line space is mentioned
- Date: Thu, 4 Jun 2015 18:41:17 +0000 (UTC)
commit 5e5b6f9388a12803a94fc90fc01c53bca51315ac
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Jun 4 11:40:31 2015 -0700
Bug 750383 - Issue in ellipsization when line space is mentioned
pango/pango-layout.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index c982041..934e22a 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -247,6 +247,7 @@ pango_layout_init (PangoLayout *layout)
layout->width = -1;
layout->height = -1;
layout->indent = 0;
+ layout->spacing = 0;
layout->alignment = PANGO_ALIGN_LEFT;
layout->justify = FALSE;
@@ -3652,6 +3653,7 @@ add_line (PangoLayoutLine *line,
PangoRectangle logical_rect;
pango_layout_line_get_extents (line, NULL, &logical_rect);
state->remaining_height -= logical_rect.height;
+ state->remaining_height -= layout->spacing;
state->line_height = logical_rect.height;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]