Textblock: Relayout if needed in line geometry get

evas_object_textblock_line_number_geometry_get() did not trigger
a relayout, so it could end up returning FALSE and invalid values.
This commit is contained in:
Jean-Philippe Andre 2014-01-10 11:43:04 +09:00
parent 9860af0b35
commit 908785b60d
1 changed files with 3 additions and 0 deletions

View File

@ -10339,9 +10339,12 @@ _textblock_line_number_geometry_get(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *
Evas_Coord *cw = va_arg(*list, Evas_Coord *);
Evas_Coord *ch = va_arg(*list, Evas_Coord *);
Eina_Bool *result = va_arg(*list, Eina_Bool *);
const Evas_Object_Textblock *o = _pd;
Evas_Object_Textblock_Line *ln;
_relayout_if_needed(eo_obj, o);
ln = _find_layout_line_num(eo_obj, line);
if (!ln)
{