summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-05-31 11:46:02 +0200
committerDave Davenport <qball@gmpclient.org>2017-05-31 11:46:02 +0200
commit939495f00bb37cdd2edd7d3f8398b6ff472e82c4 (patch)
treec6c4ef9cfdabd7dec6b09fbf1b734ec4475273e8 /source
parent59e012e85bb73467943a01666da584eb9a734136 (diff)
[TextBox] Fix icon offset.
Diffstat (limited to 'source')
-rw-r--r--source/widgets/textbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index ba37d38d..0a0af9d8 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -373,7 +373,7 @@ static void textbox_draw ( widget *wid, cairo_t *draw )
}
// Skip the side MARGIN on the X axis.
- int x = widget_padding_get_left ( WIDGET ( tb ) ) + offset;
+ int x = widget_padding_get_left ( WIDGET ( tb ) );
int top = widget_padding_get_top ( WIDGET ( tb ) );
int y = top + ( pango_font_metrics_get_ascent ( tb->metrics ) - pango_layout_get_baseline ( tb->layout ) ) / PANGO_SCALE;