static void
_layout_line_advance(Ctxt *c, Evas_Object_Textblock_Format *fmt)
{
+ Evas_Object_Textblock_Format *last_fmt = fmt;
+
if (c->hyphen_ti)
{
c->ln->items = (Evas_Object_Textblock_Item *)
eina_list_append(c->o->hyphen_items, c->hyphen_ti);
c->hyphen_ti = NULL;
}
- _layout_line_finalize(c, fmt);
+ if (c->ln->items)
+ {
+ last_fmt = _ITEM(EINA_INLIST_GET(c->ln->items)->last)->format;
+ }
+ _layout_line_finalize(c, last_fmt);
_layout_line_new(c, fmt);
}
ck_assert_int_eq(bret, ret);
}
+ /* Check that line wrap produces the same height values as paragraph break */
+ evas_object_resize(tb, 1, 100);
+ evas_object_textblock_text_markup_set(tb, "<wrap=word>hello world");
+ evas_object_textblock_size_formatted_get(tb, NULL, &bh);
+ evas_object_textblock_text_markup_set(tb, "hello<ps>world");
+ evas_object_textblock_size_formatted_get(tb, NULL, &h);
+
+ ck_assert_int_eq(bh, h);
+
END_TB_TEST();
}
END_TEST