summaryrefslogtreecommitdiff
path: root/src/app/SvgSlider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/SvgSlider.cpp')
-rw-r--r--src/app/SvgSlider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/SvgSlider.cpp b/src/app/SvgSlider.cpp
index ec17caae..61268c4d 100644
--- a/src/app/SvgSlider.cpp
+++ b/src/app/SvgSlider.cpp
@@ -57,7 +57,7 @@ void SvgSlider::onChange(const ChangeEvent& e) {
float v = 1.f;
engine::ParamQuantity* pq = getParamQuantity();
if (pq) {
- v = math::rescale(pq->getSmoothValue(), pq->getMinValue(), pq->getMaxValue(), 0.f, 1.f);
+ v = pq->getScaledValue();
}
// Interpolate handle position