All lines that are too long should be ellipsized when ellipsizing is
enabled. Not just those lines where we thought they'd need to be in
advance. It might turn out that a word is too long so that we cannot
wrap it. In that case we still want to break as soon as possible, but
still ellipsize the line.
https://bugzilla.gnome.org/show_bug.cgi?id=649783
/* 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);
}