From 546669afb097675f36c9b165bdf62c2e23c0efce Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 13 Mar 2013 19:13:43 +0100 Subject: Fix label text position. --- plugingui/label.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugingui') diff --git a/plugingui/label.cc b/plugingui/label.cc index 1d2eb93..bb0bb4d 100644 --- a/plugingui/label.cc +++ b/plugingui/label.cc @@ -47,10 +47,11 @@ void GUI::Label::repaintEvent(GUI::RepaintEvent *e) { // printf("Label::repaintEvent\n"); Painter p(this); + p.setColour(Colour(1)); Font font; - p.drawText(10, height() / 2 + 5, font, _text); + p.drawText(10, (height() + font.textHeight()) / 2, font, _text); } -- cgit v1.2.3