summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-10 16:16:59 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-10 16:16:59 -0400
commitb5f36f57885cc52e9c435b84e42f34cc2a0214a7 (patch)
treeafde748eb2a9a034029907f2533a7983844c9823 /libs
parent645e9caeeefe0db6ed7615842b317f3b6ecb95d9 (diff)
fix up parsing of send gain MIDI bindings so that they actually work
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/controllable_descriptor.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/pbd/controllable_descriptor.cc b/libs/pbd/controllable_descriptor.cc
index 9c930e4dbd..392b917ec8 100644
--- a/libs/pbd/controllable_descriptor.cc
+++ b/libs/pbd/controllable_descriptor.cc
@@ -104,11 +104,10 @@ ControllableDescriptor::set (const std::string& str)
}
} else if (path[1] == "send") {
- if (path.size() == 3 && rest.size() == 3) {
+ if (path.size() == 3 && rest.size() == 2) {
if (path[2] == "gain") {
_subtype = SendGain;
_target.push_back (atoi (rest[1]));
- _target.push_back (atoi (rest[2]));
} else {
return -1;
}