Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/src


Modified Files:
        etox_line.c 


Log Message:


get the list, not the data we passed in...
include the end bit on etox_line_apply_context()

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_line.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- etox_line.c 19 Aug 2003 05:49:26 -0000      1.24
+++ etox_line.c 19 Aug 2003 15:36:12 -0000      1.25
@@ -647,8 +647,8 @@
 {
   Evas_List *l, *ls = NULL, *le = NULL;
 
-  ls = evas_list_find(line->bits, start);
-  le = evas_list_find(line->bits, end);
+  ls = evas_list_find_list(line->bits, start);
+  le = evas_list_find_list(line->bits, end);
   
   /* make sure start and end exist and are in line->bits */
   if ( !ls )
@@ -656,7 +656,7 @@
   if ( !le ) 
     le = evas_list_last(line->bits); 
 
-  for (l = ls; l && l != le; l = l->next)
+  for (l = ls; l; l = l->next)
   {
     Evas_Object *bit;
 
@@ -666,5 +666,8 @@
     evas_object_color_set(bit, context->r, context->g, context->b,
                           context->a);
     estyle_set_font(bit, context->font, context->font_size);
+
+    if (l == le)
+      break;
   }
 }




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to