[pango/pango2: 61/135] layout: Use simpler getters




commit 7c7745b9fd718813e9defabcad478b711cfb733e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 24 23:41:31 2022 -0500

    layout: Use simpler getters

 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 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]