Fixed copy/paste bugs.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Benoît Ryder 2011-01-31 01:02:47 +01:00 committed by Uli Schlachter
parent 3eb12cdf00
commit 89c3e7411d
1 changed files with 2 additions and 2 deletions

View File

@ -117,14 +117,14 @@ textbox_extents(lua_State *L, widget_t *widget)
{
textbox_data_t *d = widget->data;
area_t geometry = d->extents;
geometry.width += d->margin.left + d->margin.left;
geometry.width += d->margin.left + d->margin.right;
geometry.height += d->margin.bottom + d->margin.top;
if(d->width)
geometry.width = d->width;
if(d->height)
geometry.width = d->height;
geometry.height = d->height;
if(d->bg_image)
{