Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_text.c
Log Message:
- Make sure we're still pointing at a node after applying the formatting.
(In the case where we aren't, set the current node to be the end of the
list). This fixes the warning in the test case although the indexes are
still off a bit.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -3 -r1.136 -r1.137
--- ewl_text.c 17 Nov 2006 05:02:01 -0000 1.136
+++ ewl_text.c 22 Nov 2006 16:34:38 -0000 1.137
@@ -3965,6 +3965,9 @@
fmt = ecore_dlist_current(t->formatting.nodes);
}
+ /* make sure we're still pointing at a node */
+ if (!fmt) fmt = ecore_dlist_goto_last(t->formatting.nodes);
+
/* put the cursor at the end of the formatted area */
ewl_text_cursor_position_set(t, char_idx + char_len);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs