From 4fbb944f132eb886a6f5b350e5a14a4fe380aacf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jul 2015 00:12:09 +0300 Subject: Add missing checks into gui. --- src/gui/widgets/label.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets/label.cpp') diff --git a/src/gui/widgets/label.cpp b/src/gui/widgets/label.cpp index 722e1bbe9..8f0d49887 100644 --- a/src/gui/widgets/label.cpp +++ b/src/gui/widgets/label.cpp @@ -99,11 +99,8 @@ Label::Label(const Widget2 *const widget, mTextChanged(true) { const Font *const font = getFont(); - if (font) - { - setWidth(font->getWidth(caption)); - setHeight(font->getHeight()); - } + setWidth(font->getWidth(caption)); + setHeight(font->getHeight()); init(); } -- cgit v1.2.3-60-g2f50