summaryrefslogtreecommitdiffstats
path: root/src/libs/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui')
-rw-r--r--src/libs/gui/ControlGroups.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/gui/ControlGroups.cpp b/src/libs/gui/ControlGroups.cpp
index 7af9011b..4de4e0c6 100644
--- a/src/libs/gui/ControlGroups.cpp
+++ b/src/libs/gui/ControlGroups.cpp
@@ -129,6 +129,12 @@ SliderControlGroup::init(ControlPanel* panel, SharedPtr<PortModel> pm)
pm->path().name().c_str()));
}
+ if (min > pm->value())
+ min = pm->value();
+
+ if (max < pm->value())
+ max = pm->value();
+
if (max <= min)
max = min + 1.0f;