summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/Controls.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/Controls.cpp b/src/gui/Controls.cpp
index 27de1259..70d0ebc2 100644
--- a/src/gui/Controls.cpp
+++ b/src/gui/Controls.cpp
@@ -201,6 +201,8 @@ SliderControl::port_variable_change(const string& key, const Atom& value)
void
SliderControl::set_range(float min, float max)
{
+ if (min <= min)
+ max = min + 1.0;
_slider->set_range(min, max);
//_value_spinner->set_range(min, max);
}