+2013-01-14 Tom Hacohen (TAsn)
+
+ * Evas textblock: Fixed issue with line height when breaking on a
+ format.
+
2013-01-14 Cedric Bail
* Fix bug in eio_file_map_new container set.
* Evas texblock: Fixed a bug with breaking after format items.
* Fix endianess issue in Eet_Image.
* Fix bug in eio_file_map_new container set.
+ * Evas textblock: Fixed issue with line height when breaking on a format.
* inside the list and then walk them on the next iteration. */
for (i = c->par->logical_items ; i ; )
{
+ Evas_Coord prevdescent = 0, prevascent = 0;
int adv_line = 0;
int redo_item = 0;
it = _ITEM(eina_list_data_get(i));
Evas_Object_Textblock_Format_Item *fi = _ITEM_FORMAT(it);
if (fi->formatme)
{
+ prevdescent = c->maxdescent;
+ prevascent = c->maxascent;
/* If there are no text items yet, calc ascent/descent
* according to the current format. */
if (c->maxascent + c->maxdescent == 0)
else if (wrap == 0)
{
/* Should wrap before the item */
+
+ /* We didn't end up using the item, so revert the ascent
+ * and descent changes. */
+ c->maxdescent = prevdescent;
+ c->maxascent = prevascent;
+
adv_line = 0;
redo_item = 1;
_layout_line_advance(c, it->format);