From ae51c0e16f0d8576c1e6a692b7393e6fc30181df Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 21 Sep 2010 13:05:30 +0000 Subject: [PATCH] Evas textblock: Fixed deleting the last visual format in a row of visual formats, for example in 'abcd' the tab wouldn't have gotten erased correctly. SVN revision: 52540 --- legacy/evas/src/lib/canvas/evas_object_textblock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index 59ac13657d..c6dc4ffa8b 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -5988,10 +5988,10 @@ evas_textblock_cursor_char_delete(Evas_Textblock_Cursor *cur) if (fmt) { const char *format = NULL; - Evas_Object_Textblock_Node_Format *itr; + Evas_Object_Textblock_Node_Format *last_fmt; /* If there's a PS it must be the last become it delimits paragraphs */ - itr = _evas_textblock_node_format_last_at_off(fmt); - format = eina_strbuf_string_get(fmt->format); + last_fmt = _evas_textblock_node_format_last_at_off(fmt); + format = eina_strbuf_string_get(last_fmt->format); if (format && _IS_PARAGRAPH_SEPARATOR(format)) { merge_nodes = 1; @@ -5999,7 +5999,7 @@ evas_textblock_cursor_char_delete(Evas_Textblock_Cursor *cur) /* If a singnular, mark as invisible, so we'll delete it. */ if (!format || ((*format != '+') && (*format != '-'))) { - fmt->visible = EINA_FALSE; + last_fmt->visible = EINA_FALSE; } }