[pango/pango2: 97/201] layout: Don't trim leading when placing lines
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 97/201] layout: Don't trim leading when placing lines
- Date: Sat, 11 Jun 2022 02:22:30 +0000 (UTC)
commit 7ec4fb893e3f1f9490889e45e1323d671c99790c
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 24 02:25:38 2022 -0500
layout: Don't trim leading when placing lines
pango/pango-layout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 6dacf398..d0327d93 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -670,7 +670,7 @@ ensure_lines (PangoLayout *layout)
retry:
line = pango_line_breaker_next_line (breaker, x, width, layout->wrap, ellipsize);
- pango_line_get_extents (line, NULL, &ext);
+ pango_line_get_trimmed_extents (line, PANGO_LEADING_TRIM_NONE, &ext);
if (layout->height >= 0 && y + 2 * ext.height >= layout->height &&
ellipsize != layout->ellipsize)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]