Attached patch fixes getting selected text in an edje entry,
both an infinite loop that caused a massive alloc and getting
the right range of selected text.
Index: src/lib/canvas/evas_object_textblock.c
===================================================================
--- src/lib/canvas/evas_object_textblock.c	(revision 37263)
+++ src/lib/canvas/evas_object_textblock.c	(working copy)
@@ -4345,7 +4345,7 @@
 		       if ((n == n1) && (n == n2))
 			 {
 			    ps = n->text + cur1->pos;
-			    pe = ps + index - cur1->pos + 1;
+			    pe = ps + index - cur1->pos;
 			 }
 		       else if (n == n1)
 			 {
@@ -4355,7 +4355,7 @@
 		       else if (n == n2)
 			 {
 			    ps = n->text;
-			    pe = ps + cur1->pos + 1;
+			    pe = ps + cur2->pos + 1;
 			 }
 		       else
 			 {
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to