forked from enlightenment/efl
Evas textblock: Fixed a small calculation in format item's size calculation. Was correct, but too complex, simplified it.
SVN revision: 57056
This commit is contained in:
parent
d09431f2a1
commit
24f943fa3d
|
@ -3013,13 +3013,10 @@ _layout_do_format(const Evas_Object *obj __UNUSED__, Ctxt *c,
|
|||
else if ((!strcmp(item, "\t")) || (!strcmp(item, "\\t")))
|
||||
{
|
||||
Evas_Object_Textblock_Format_Item *fi;
|
||||
int x2;
|
||||
|
||||
x2 = c->x + fmt->tabstops;
|
||||
fi = _layout_format_item_add(c, n, item, fmt);
|
||||
fi->parent.w = fi->parent.adv = x2 - c->x;
|
||||
fi->parent.w = fi->parent.adv = fmt->tabstops;
|
||||
fi->formatme = 1;
|
||||
c->x = x2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue