Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/etox

Dir     : e17/libs/etox/src


Modified Files:
        etox.c 


Log Message:
Improvements to the text insertion.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -3 -r1.91 -r1.92
--- etox.c      1 Oct 2004 19:42:20 -0000       1.91
+++ etox.c      4 Oct 2004 17:32:19 -0000       1.92
@@ -415,12 +415,14 @@
         * Now merge the end of the added text with the remainder of the
         * existing text.
         */
-       ll = evas_list_last(lines);
-       temp = ll->data;
-       lines = evas_list_remove(lines, temp);
-       ll = evas_list_find_list(et->lines, start);
-       end = ll->next->data;
-       etox_line_merge_prepend(temp, end);
+       if (lines) {
+               ll = evas_list_last(lines);
+               temp = ll->data;
+               lines = evas_list_remove(lines, temp);
+               ll = evas_list_find_list(et->lines, start);
+               end = ll->next->data;
+               etox_line_merge_prepend(temp, end);
+       }
 
        /*
         * Now add the remaining lines to the end of the line list.




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