From 09d379465660f50c492c08e15a1e78b244333b1e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 17 Sep 2016 14:28:45 +0200 Subject: options/slider: fix infix arithmetic --- options/slider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options/slider.cpp') 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 -- cgit v1.2.3