diff options
Diffstat (limited to 'gui/slidervalue.cpp')
-rw-r--r-- | gui/slidervalue.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/slidervalue.cpp b/gui/slidervalue.cpp index 6f007e23b..3aaffcc05 100644 --- a/gui/slidervalue.cpp +++ b/gui/slidervalue.cpp @@ -172,7 +172,10 @@ GUISliderValue::GUISliderValue(xml_node<>* node) : GUIObject(node) mSliderH = LoadAttrIntScaleY(child, "sliderh", mSliderH); } - mFontHeight = mFont->GetHeight(); + if (mFont && mFont->GetResource()) + mFontHeight = mFont->GetHeight(); + else + mFontHeight = 0; if (mShowCurr) { |