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
diff --git a/gui/slidervalue.cpp b/gui/slidervalue.cpp
index 700d7d5..3ae6b98 100644
--- a/gui/slidervalue.cpp
+++ b/gui/slidervalue.cpp
@@ -181,6 +181,7 @@
{
string parsevalue = gui_parse_text(attr->value());
mPadding = atoi(parsevalue.c_str());
+ mLinePadding = mPadding;
}
attr = child->first_attribute("sliderw");
@@ -208,7 +209,6 @@
loadValue(true);
- mLinePadding = mPadding;
if (mShowRange)
{
int textW = std::max(measureText(mMaxStr), measureText(mMinStr));