const Evas_Object_Textblock_Text_Item *ti, size_t line_start,
const char *breaks)
{
- if (!ti->parent.text_node) return -1;
return _layout_get_word_mixwrap_common(c, fmt, ti, EINA_FALSE, line_start,
breaks);
}
const Evas_Object_Textblock_Text_Item *ti, size_t line_start,
const char *breaks)
{
- if (!ti->parent.text_node) return -1;
return _layout_get_word_mixwrap_common(c, fmt, ti, EINA_TRUE, line_start,
breaks);
}
ret = 1;
goto end;
}
- else if (it->format->wrap_word || it->format->wrap_char ||
- it->format->wrap_mixed)
+ /* If we want to wrap and it's worth checking for wrapping
+ * (i.e there's actually text). */
+ else if ((it->format->wrap_word || it->format->wrap_char ||
+ it->format->wrap_mixed) && it->text_node)
{
if (it->type == EVAS_TEXTBLOCK_ITEM_FORMAT)
{
if (!line_breaks)
{
/* Only relevant in those cases */
- if ((it->format->wrap_word || it->format->wrap_mixed) && it->text_node)
+ if (it->format->wrap_word || it->format->wrap_mixed)
{
size_t len =
eina_ustrbuf_length_get(