# HG changeset patch # User KUDr # Date 1169164084 0 # Node ID 7aa1a23cd1e4a9d037d40c2c2fd98e0d2a07fe90 # Parent cec1cfd00d1e5556db3f8ef39579231f8fd8e5da (svn r8273) -Fix: return value from clamp was ignored diff -r cec1cfd00d1e -r 7aa1a23cd1e4 src/misc_gui.cpp --- a/src/misc_gui.cpp Thu Jan 18 23:45:58 2007 +0000 +++ b/src/misc_gui.cpp Thu Jan 18 23:48:04 2007 +0000 @@ -1885,7 +1885,7 @@ /* Increase or decrease the value and clamp it to extremes */ value += (x >= 30) ? step : -step; - clamp(value, ce->min, ce->max); + value = clamp(value, ce->min, ce->max); // take whatever the function returns value = ce->proc(value, (x >= 30) ? 1 : -1);