Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/src


Modified Files:
        etox.c 


Log Message:
Fix the alignment for wrapping right aligned lines.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -3 -r1.87 -r1.88
--- etox.c      10 Jul 2004 19:37:29 -0000      1.87
+++ etox.c      19 Jul 2004 06:04:21 -0000      1.88
@@ -1330,11 +1330,13 @@
                etox_line_layout(line);
 
                /*
-                * If we need to wrap the line, we don't need to re-layout since
-                * the maximal width was used for splitting.
+                * If we need to wrap the line, we need to re-layout since
+                * the width affects alignment.
                 */
-               if ((et->flags & ETOX_SOFT_WRAP) && (line->w > et->w))
+               if ((et->flags & ETOX_SOFT_WRAP) && (line->w > et->w)) {
                                etox_line_wrap(et, line);
+                               etox_line_layout(line);
+               }
 
                l = l->next;
                y += line->h;




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to