summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index dd4f3913..2610f431 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -5222,8 +5222,7 @@ pango_layout_line_postprocess (PangoLayoutLine *line,
/* Ellipsize the line if necessary
*/
- if (G_UNLIKELY (state->line_width >= 0 &&
- should_ellipsize_current_line (line->layout, state)))
+ if (G_UNLIKELY (state->line_width >= 0 && line->layout->ellipsize))
{
ellipsized = _pango_layout_line_ellipsize (line, state->attrs, state->line_width);
}