2013-01-15 Tom Hacohen (TAsn)
* Evas textblock: Fixed issue and simplified cursor_geometry_get.
+ * Evas text: Fixed issue with horiz advance.
2013-01-14 Daniel Willmann
* Evas textblock: Fixed issue with line height when breaking on a format.
* Fix SIGFPE in evas map update if image is 0.
* Evas textblock: Fixed issue and simplified cursor_geometry_get.
+ * Evas text: Fixed issue with horiz advance.
_evas_object_text_horiz_advance_get(const Evas_Object *eo_obj,
const Evas_Object_Text *o)
{
- Evas_Object_Text_Item *it, *last_it = NULL;
+ Evas_Object_Text_Item *it;
Evas_Coord adv;
(void) eo_obj;
EINA_INLIST_FOREACH(EINA_INLIST_GET(o->items), it)
{
adv += it->adv;
- last_it = it;
}
- if (last_it && (last_it->w > last_it->adv))
- adv += last_it->w - last_it->adv;
return adv;
}