Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/src


Modified Files:
        etox.c 


Log Message:
Fix for the segv when searching for the index of a coordinate in an etox.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- etox.c      13 May 2004 04:47:35 -0000      1.74
+++ etox.c      13 May 2004 21:46:27 -0000      1.75
@@ -814,7 +814,16 @@
                if (x) *x = line->x + line->w;
        }
        else {
-               etox_line_index_to_geometry(line, index - sum, x, y, w, h);
+               Evas_List *l;
+               for (l = et->lines; l; l = l->next) {
+                       line = l->data;
+                       sum += line->length;
+                       if (sum > index)
+                               break;
+               }
+               if (line)
+                       etox_line_index_to_geometry(line, index - sum, x, y,
+                                                   w, h);
        }
 }
 




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to