diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-09-11 16:57:25 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-09-11 16:57:25 -0400 |
commit | 24bb7774579627b25a61a348ffe0fb25988a12f3 (patch) | |
tree | 09e6b22cc7c11d69b06c9a90f6f44bba4ba2507a | |
parent | ce01a496c7dad90c672e673c0e7ba8c5de350137 (diff) | |
download | pango-24bb7774579627b25a61a348ffe0fb25988a12f3.tar.gz |
Bug 594936 - pango_layout_set_wrap
Remove wrong optimization in pango_layout_set_wrap(). The assumption that
if the layout was not wrapped before, it will not wrap now is simply wrong.
-rw-r--r-- | pango/pango-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 537deeee..77270c23 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -460,7 +460,7 @@ pango_layout_set_wrap (PangoLayout *layout, { layout->wrap = wrap; - if (layout->is_wrapped) + if (layout->width != -1) pango_layout_clear_lines (layout); } } |