summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/gui_scrollbar.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui_scrollbar.pas b/src/gui/gui_scrollbar.pas
index 6f16b2c7..ce236fef 100644
--- a/src/gui/gui_scrollbar.pas
+++ b/src/gui/gui_scrollbar.pas
@@ -364,7 +364,7 @@ begin
DrawSlider(False);
if area <> 0 then
- newp := FMin + Trunc((FMax - FMin) * FSliderPos / area)
+ newp := FMin + Trunc((FMax - FMin) * (FSliderPos / area))
else
newp := FMin;