Evas textblock: Fixed issue with *textblock_cursor_range_formats_get.

In some cases we could return extra formats that are outside of the
range. It's actually not completely fixed yet.

Thanks to clang-analyzer for detecting this.
This commit is contained in:
Tom Hacohen 2013-07-04 10:02:48 +01:00
parent 09a5c28e5b
commit 5d4ff97e20
1 changed files with 2 additions and 2 deletions

View File

@ -8858,9 +8858,9 @@ evas_textblock_cursor_range_formats_get(const Evas_Textblock_Cursor *cur1, const
{
Evas_Object_Textblock_Node_Format *fnode = first;
/* Go to the first one in the range */
if (first->text_node != n1)
if (fnode->text_node != n1)
{
first = _NODE_FORMAT(EINA_INLIST_GET(first)->next);
fnode = _NODE_FORMAT(EINA_INLIST_GET(fnode)->next);
}
while (fnode)