diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-04-04 11:49:10 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-05-08 21:01:05 -0400 |
commit | 60bbd95b69112114d36b239b559f39fbf3259721 (patch) | |
tree | 74c73bc15bfd3fe665e39bab2589a5421567a3b3 | |
parent | 736b687b92f93b268fccdf727f1cfd259bd903ed (diff) | |
download | pango-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.
-rw-r--r-- | pango/pango-layout.c | 5 |
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); } } |