diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-24 02:25:38 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-25 15:29:16 -0500 |
commit | 288a537e5178eafa8193c69b6298c3592bdd4296 (patch) | |
tree | 69729a03de0086c3580e546d8b2842f858022c5a | |
parent | b79cd710f0988214ab8bd88b2e2ff75c4f1319ed (diff) | |
download | pango-288a537e5178eafa8193c69b6298c3592bdd4296.tar.gz |
layout: Don't trim leading when placing lines
-rw-r--r-- | pango/pango-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index d5b0a9fc..b77b948b 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -622,7 +622,7 @@ ensure_lines (PangoLayout *layout) retry: line = pango_line_breaker_next_line (breaker, x, width, layout->wrap, ellipsize); - pango_layout_line_get_extents (line, NULL, &ext); + pango_layout_line_get_trimmed_extents (line, PANGO_LEADING_TRIM_NONE, &ext); if (layout->height >= 0 && y + 2 * ext.height >= layout->height && ellipsize != layout->ellipsize) |