Evas: Fixed a bug when erasing the last paragraph of a textblock.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 10 Aug 2010 08:34:47 +0000 (08:34 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 10 Aug 2010 08:34:47 +0000 (08:34 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@50958 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 2d5ac03..8dddb95 100644 (file)
@@ -4246,7 +4246,7 @@ _evas_textblock_node_format_remove_all_at_pos(Evas_Object_Textblock *o, Evas_Obj
 {
    Evas_Object_Textblock_Node_Format *nnode;
    Evas_Object_Textblock_Node_Text *tnode;
-   int off;
+
    nnode = n;
    tnode = n->text_node;
    do
@@ -4254,11 +4254,10 @@ _evas_textblock_node_format_remove_all_at_pos(Evas_Object_Textblock *o, Evas_Obj
         Evas_Object_Textblock_Node_Format *curnode;
         curnode = nnode;
         nnode = _NODE_FORMAT(EINA_INLIST_GET(nnode)->next);
-        off = nnode->offset;
 
         _evas_textblock_node_format_remove(o, curnode);
      }
-   while (nnode && (nnode->text_node == tnode) && (off == 0));
+   while (nnode && (nnode->text_node == tnode) && (nnode->offset == 0));
 }
 
 /* end = -1 means to the end */