[pango] Bug 594936 - pango_layout_set_wrap



commit 24bb7774579627b25a61a348ffe0fb25988a12f3
Author: Behdad Esfahbod <behdad behdad org>
Date:   Fri Sep 11 16:57:25 2009 -0400

    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.

 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 537deee..77270c2 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);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]