Evas textblock: Adding visible formats - only invalidate current node.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Apr 2011 12:22:16 +0000 (12:22 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Apr 2011 12:22:16 +0000 (12:22 +0000)
No need to invalidate all the nodes when adding visible formats because
they are "like regular text".

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@58428 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index fc6ba57..8e3c781 100644 (file)
@@ -6772,7 +6772,10 @@ evas_textblock_cursor_format_append(Evas_Textblock_Cursor *cur, const char *form
      }
 
    _evas_textblock_changed(o, cur->obj);
-   _evas_textblock_invalidate_all(o);
+   if (!is_visible)
+      _evas_textblock_invalidate_all(o);
+   else if (cur->node)
+      cur->node->dirty = EINA_TRUE;
 
    return is_visible;
 }