summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-13 19:13:43 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-13 19:13:43 +0100
commit546669afb097675f36c9b165bdf62c2e23c0efce (patch)
tree4f388faccd6425307c4b4d847f62482d8b38ac85 /plugingui
parentd55de707c3352a468a227d69920a56ef2550a7cc (diff)
Fix label text position.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/label.cc3
1 files changed, 2 insertions, 1 deletions
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);
}