summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r--src/gui/widgets/setupitem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp
index 043d0870f..9b552d568 100644
--- a/src/gui/widgets/setupitem.cpp
+++ b/src/gui/widgets/setupitem.cpp
@@ -696,7 +696,7 @@ void SetupItemSlider::createControls()
mSlider = new Slider(mMin, mMax);
mSlider->setActionEventId(mEventName);
mSlider->addActionListener(mParent);
- mSlider->setValue(atof(mValue.c_str()));
+ mSlider->setValue2(atof(mValue.c_str()));
mSlider->setHeight(30);
mWidget = mSlider;
@@ -725,7 +725,7 @@ void SetupItemSlider::toWidget()
if (!mSlider)
return;
- mSlider->setValue(atof(mValue.c_str()));
+ mSlider->setValue2(atof(mValue.c_str()));
}
void SetupItemSlider::action(const gcn::ActionEvent &event A_UNUSED)
@@ -820,7 +820,7 @@ void SetupItemSlider2::createControls()
mSlider = new Slider(mMin, mMax);
mSlider->setActionEventId(mEventName);
mSlider->addActionListener(mParent);
- mSlider->setValue(atof(mValue.c_str()));
+ mSlider->setValue2(atof(mValue.c_str()));
mSlider->setHeight(30);
mWidget = mSlider;
@@ -879,7 +879,7 @@ void SetupItemSlider2::toWidget()
int val = roundDouble(atof(mValue.c_str()));
if (mInvert)
val = mInvertValue - val;
- mSlider->setValue(val);
+ mSlider->setValue2(val);
updateLabel();
}