summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-24 23:41:31 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-25 15:31:25 -0500
commita9cc8c6c773a2a53ac19413164217b15fe15aa66 (patch)
treebaa14357a5993e5ba77cbb67594e6acc4d748840
parent2b6067c726947c074b1b5ae0d9d17e9671757f13 (diff)
downloadpango-a9cc8c6c773a2a53ac19413164217b15fe15aa66.tar.gz
layout: Use simpler getters
-rw-r--r--pango/pango-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 8fe2e5f5..816eb9ef 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_layout_line_get_trimmed_extents (line, PANGO_LEADING_TRIM_NONE, &ext);
+ pango_layout_line_get_extents (line, NULL, &ext);
if (layout->height >= 0 && y + 2 * ext.height >= layout->height &&
ellipsize != layout->ellipsize)