diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-13 19:13:43 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-13 19:13:43 +0100 |
commit | 546669afb097675f36c9b165bdf62c2e23c0efce (patch) | |
tree | 4f388faccd6425307c4b4d847f62482d8b38ac85 /plugingui/label.cc | |
parent | d55de707c3352a468a227d69920a56ef2550a7cc (diff) |
Fix label text position.
Diffstat (limited to 'plugingui/label.cc')
-rw-r--r-- | plugingui/label.cc | 3 |
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); } |