Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/src


Modified Files:
        etox_selection.c 


Log Message:
Fix multi-line index selection. Add the start of multi-selection overlap
testing.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox_selection.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- etox_selection.c    23 Jul 2003 16:37:39 -0000      1.2
+++ etox_selection.c    23 Jul 2003 20:04:39 -0000      1.3
@@ -14,13 +14,14 @@
                bit = bl->data
 
 #define SELECTION_LOOP_END \
+               bl = bl->next; \
                if (!bl) { \
                        l = l->next; \
-                       line = l->data; \
-                       bl = line->bits; \
+                       if (l) { \
+                               line = l->data; \
+                               bl = line->bits; \
+                       } \
                } \
-               else \
-                       bl = bl->next; \
        } \
 } while (0)
 
@@ -190,7 +191,7 @@
        if (!sb)
                goto out;
 
-       eb = etox_line_index_to_bit(sl, &ei);
+       eb = etox_line_index_to_bit(el, &ei);
        if (!eb)
                goto out;
 




-------------------------------------------------------
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