summaryrefslogtreecommitdiff
path: root/plugingui/label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/label.cc')
-rw-r--r--plugingui/label.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/label.cc b/plugingui/label.cc
index 1de715b..18ba1e8 100644
--- a/plugingui/label.cc
+++ b/plugingui/label.cc
@@ -33,6 +33,7 @@ namespace GUI {
Label::Label(GUI::Widget *parent)
: Widget(parent)
+ , font(":fontemboss.png")
{
}
@@ -50,7 +51,6 @@ void Label::repaintEvent(GUI::RepaintEvent* repaintEvent)
p.setColour(Colour(1));
- Font font(":fontemboss.png");
p.drawText(10, (height() + font.textHeight()) / 2, font, _text, true);
}