Evas textblock: Fixed deleting the last visual format in a row of visual formats...
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 21 Sep 2010 13:05:30 +0000 (13:05 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 21 Sep 2010 13:05:30 +0000 (13:05 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@52540 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 59ac136..c6dc4ff 100644 (file)
@@ -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;
                }
           }