summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-04 11:49:10 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-08 21:01:05 -0400
commit60bbd95b69112114d36b239b559f39fbf3259721 (patch)
tree74c73bc15bfd3fe665e39bab2589a5421567a3b3 /pango
parent736b687b92f93b268fccdf727f1cfd259bd903ed (diff)
downloadpango-60bbd95b69112114d36b239b559f39fbf3259721.tar.gz
layout: Remove a broken optimization
pango_layout_set_width was trying to avoid invalidating lines in some cases, but it failed. Which is good, since this is incorrect, since it did not take possible ellipsization into account.
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-layout.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index e847e789..57ec7606 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -356,11 +356,6 @@ pango_layout_set_width (PangoLayout *layout,
if (width != layout->width)
{
layout->width = width;
-
- /* Increasing the width can only decrease the line count */
- if (layout->line_count == 1 && width > layout->width)
- return;
-
layout_changed (layout);
}
}