forked from enlightenment/efl
Evas: Fixed a bug when erasing the last paragraph of a textblock.
SVN revision: 50958
This commit is contained in:
parent
14932a769e
commit
10a14f3994
|
@ -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_Format *nnode;
|
||||||
Evas_Object_Textblock_Node_Text *tnode;
|
Evas_Object_Textblock_Node_Text *tnode;
|
||||||
int off;
|
|
||||||
nnode = n;
|
nnode = n;
|
||||||
tnode = n->text_node;
|
tnode = n->text_node;
|
||||||
do
|
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;
|
Evas_Object_Textblock_Node_Format *curnode;
|
||||||
curnode = nnode;
|
curnode = nnode;
|
||||||
nnode = _NODE_FORMAT(EINA_INLIST_GET(nnode)->next);
|
nnode = _NODE_FORMAT(EINA_INLIST_GET(nnode)->next);
|
||||||
off = nnode->offset;
|
|
||||||
|
|
||||||
_evas_textblock_node_format_remove(o, curnode);
|
_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 */
|
/* end = -1 means to the end */
|
||||||
|
|
Loading…
Reference in New Issue