summaryrefslogtreecommitdiff
path: root/libs/ardour/event_type_map.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-07-17 00:56:06 +0000
committerCarl Hetherington <carl@carlh.net>2010-07-17 00:56:06 +0000
commitdaec83d258e451772de77ff83dca27b798b94522 (patch)
tree5a646a6c400950ab6a6bfbb15c013670d2bba126 /libs/ardour/event_type_map.cc
parent2fdd30ce0afca85f07d64765d9ac08251a735f3b (diff)
Fix typo in event type parser; fixes #3323.
git-svn-id: svn://localhost/ardour2/branches/3.0@7435 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/event_type_map.cc')
-rw-r--r--libs/ardour/event_type_map.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/event_type_map.cc b/libs/ardour/event_type_map.cc
index 0388a934f2..a2db60f4ba 100644
--- a/libs/ardour/event_type_map.cc
+++ b/libs/ardour/event_type_map.cc
@@ -219,7 +219,7 @@ EventTypeMap::new_parameter(const string& str) const
assert(channel < 16);
p_id = 0;
p_channel = channel;
- } else if (str.length() > 24 && str.substr(0, 24) == "midi-channel-pressure-") {
+ } else if (str.length() > 22 && str.substr(0, 22) == "midi-channel-pressure-") {
p_type = MidiChannelPressureAutomation;
uint32_t channel = 0;
sscanf(str.c_str(), "midi-channel-pressure-%d", &channel);