summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/textblock_text_append.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/textblock_text_append.c b/src/bin/textblock_text_append.c
index 4daa8cf..2b34482 100644
--- a/src/bin/textblock_text_append.c
+++ b/src/bin/textblock_text_append.c
@@ -106,6 +106,7 @@ static void _setup(void)
106static void _cleanup(void) 106static void _cleanup(void)
107{ 107{
108 eo_del(o_text); 108 eo_del(o_text);
109 o_text = NULL;
109} 110}
110 111
111/* loop - do things */ 112/* loop - do things */
@@ -118,6 +119,7 @@ static void _loop(double t, int f)
118 evas_textblock_cursor_char_delete(cur); 119 evas_textblock_cursor_char_delete(cur);
119 120
120 evas_textblock_cursor_paragraph_char_first(cur); 121 evas_textblock_cursor_paragraph_char_first(cur);
122 if (!o_text) cur2 = NULL;
121 if (!cur2) 123 if (!cur2)
122 { 124 {
123 eo_do(o_text, cur2 = evas_obj_textblock_cursor_new()); 125 eo_do(o_text, cur2 = evas_obj_textblock_cursor_new());