From 4f3671892be72cdd39b1a9e76f7cd4d9962f40c0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Jun 2007 04:45:00 +0000 Subject: Just use automake instead of automake-1.9, etc. Set default value for LV2 plugin controls. Set GUI control range to always include value. git-svn-id: http://svn.drobilla.net/lad/ingen@538 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/ControlGroups.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libs/gui') 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 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; -- cgit v1.2.1