Evas textblock: Adding visible formats - only invalidate current node.

No need to invalidate all the nodes when adding visible formats because
they are "like regular text".

SVN revision: 58428
This commit is contained in:
Tom Hacohen 2011-04-07 12:22:16 +00:00
parent 54bf7e1c01
commit eed9c92ee6
1 changed files with 4 additions and 1 deletions

View 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;
}