Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/src


Modified Files:
        etox_line.c 


Log Message:
Fix up comparison for approving merger of styles on a line.
Change the initial length of the line to not include \n unless another line
follows.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_line.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- etox_line.c 6 Oct 2004 04:48:49 -0000       1.43
+++ etox_line.c 7 Oct 2004 17:48:03 -0000       1.44
@@ -16,7 +16,7 @@
        ret = (Etox_Line *) calloc(1, sizeof(Etox_Line));
        if (ret) {
                ret->flags |= align;
-               ret->length = 1;
+               ret->length = 0;
        }
 
        return ret;
@@ -658,7 +658,7 @@
                if (h)
                        *h = line->h;
                if (w)
-                       *w = line->w / line->length;
+                       *w = line->w / (line->length ? line->length : 1);
                if (y)
                        *y = line->y;
                if (x)




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to