summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/ControlGroups.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-15 04:45:00 +0000
committerDavid Robillard <d@drobilla.net>2007-06-15 04:45:00 +0000
commit4f3671892be72cdd39b1a9e76f7cd4d9962f40c0 (patch)
tree47ec93a208d8f31cbe5cf0666e163c5fc1ce1e60 /src/libs/gui/ControlGroups.cpp
parent10ff780087c9dc4e0e9777181ba6b6aca472ae61 (diff)
downloadingen-4f3671892be72cdd39b1a9e76f7cd4d9962f40c0.tar.gz
ingen-4f3671892be72cdd39b1a9e76f7cd4d9962f40c0.tar.bz2
ingen-4f3671892be72cdd39b1a9e76f7cd4d9962f40c0.zip
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
Diffstat (limited to 'src/libs/gui/ControlGroups.cpp')
-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;