Fix slidervalue not showing up in some cases

The button vibration slider was not showing up on portrat layouts.
This commit fixes that issue and maybe some other issues.

Change-Id: Ia0c0ed319358db3b99887b3b37aa7737c7caf0cc
This commit is contained in:
Ethan Yonker
2014-12-08 22:16:54 -06:00
parent 448c8dc4c1
commit c56ab4c72d
+1 -1
View File
@@ -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));