Fix null dereference.

By Luis Felipe Strano, spotted by clang.



SVN revision: 39560
This commit is contained in:
Gustavo Sverzut Barbieri 2009-03-18 21:27:38 +00:00
parent 1ed8721fa2
commit bddbbbb8a5
1 changed files with 2 additions and 0 deletions

View File

@ -307,6 +307,8 @@ _sel_update(Evas_Textblock_Cursor *c, Evas_Object *o, Entry *en)
clip = evas_object_clip_get(o);
if (en->sel_start)
range = evas_textblock_cursor_range_geometry_get(en->sel_start, en->sel_end);
else
return;
if (eina_list_count(range) != eina_list_count(en->sel))
{
while (en->sel)