forked from enlightenment/efl
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:
parent
09a5c28e5b
commit
5d4ff97e20
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue