summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-09-11 16:57:25 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-09-11 16:57:25 -0400
commit24bb7774579627b25a61a348ffe0fb25988a12f3 (patch)
tree09e6b22cc7c11d69b06c9a90f6f44bba4ba2507a /pango/pango-layout.c
parentce01a496c7dad90c672e673c0e7ba8c5de350137 (diff)
downloadpango-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.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c2
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);
}
}