Evas textblock: Fixed bug in range_formats get.

Thanks to Sanjeev for the rebort.

SVN revision: 62333
This commit is contained in:
Tom Hacohen 2011-08-11 06:58:53 +00:00
parent dae46003e7
commit d6752c9e1b
1 changed files with 4 additions and 0 deletions

View File

@ -7496,6 +7496,10 @@ evas_textblock_cursor_range_formats_get(const Evas_Textblock_Cursor *cur1, const
/* FIXME: Change first and last getting to format_before_or_at_pos_get */
last = n2->format_node;
/* If n2->format_node is NULL, we don't have formats in the tb/range. */
if (!last)
return NULL;
/* If the found format is on our text node, we should go to the last
* one, otherwise, the one we found is good enough. */
if (last->text_node == n2)