From: tasn Date: Tue, 21 Sep 2010 13:05:30 +0000 (+0000) Subject: Evas textblock: Fixed deleting the last visual format in a row of visual formats... X-Git-Tag: accepted/2.0/20130306.225542~242^2~1465 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c707e1064d338e03eb2304dd3357f53bd8ba5164;p=profile%2Fivi%2Fevas.git 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. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@52540 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 59ac136..c6dc4ff 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/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; } }