From 89c3e7411dc5d4992c5c7bfa1cea8e5282fab528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Ryder?= Date: Mon, 31 Jan 2011 01:02:47 +0100 Subject: [PATCH] Fixed copy/paste bugs. Signed-off-by: Uli Schlachter --- widgets/textbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/textbox.c b/widgets/textbox.c index cc8ef24de..a4426d4c9 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -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) {