summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--options/slider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/slider.cpp b/options/slider.cpp
index 458dba56..7f2180fa 100644
--- a/options/slider.cpp
+++ b/options/slider.cpp
@@ -71,7 +71,7 @@ int slider_value::to_slider_pos(int q_min, int q_max) const
{
const int q_diff = q_max - q_min;
- return int(std::round(((cur() - min() * q_diff) / (max() - min())) + q_min));
+ return int(std::round(((cur() - min()) * q_diff / (max() - min())) + q_min));
}
} // end ns options