diff options
Diffstat (limited to '')
-rw-r--r-- | gui/slidervalue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/slidervalue.cpp b/gui/slidervalue.cpp index 700d7d5d7..3ae6b9855 100644 --- a/gui/slidervalue.cpp +++ b/gui/slidervalue.cpp @@ -181,6 +181,7 @@ GUISliderValue::GUISliderValue(xml_node<>* node) : GUIObject(node) { string parsevalue = gui_parse_text(attr->value()); mPadding = atoi(parsevalue.c_str()); + mLinePadding = mPadding; } attr = child->first_attribute("sliderw"); @@ -208,7 +209,6 @@ GUISliderValue::GUISliderValue(xml_node<>* node) : GUIObject(node) loadValue(true); - mLinePadding = mPadding; if (mShowRange) { int textW = std::max(measureText(mMaxStr), measureText(mMinStr)); |