diff options
author | John Anderson <ardour@semiosix.com> | 2007-07-30 11:18:00 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-07-30 11:18:00 +0000 |
commit | aee603ea9d7d2c317cf93783bdbafeec43d2ada4 (patch) | |
tree | 10850babac9dac58afab3ada40a35e3c91b12f86 /libs/surfaces/mackie/mackie_control_protocol.cc | |
parent | 3451e48530ca681d34dab23da5bf1f2521b414ad (diff) |
pass a Strip & to strip_display instead of integer. Implement and use strip_display_blank.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2186 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_control_protocol.cc')
-rw-r--r-- | libs/surfaces/mackie/mackie_control_protocol.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/mackie_control_protocol.cc b/libs/surfaces/mackie/mackie_control_protocol.cc index 14b2e348ff..d0b977c57f 100644 --- a/libs/surfaces/mackie/mackie_control_protocol.cc +++ b/libs/surfaces/mackie/mackie_control_protocol.cc @@ -1003,7 +1003,6 @@ void MackieControlProtocol::notify_name_changed( void *, RouteSignal * route_sig if ( !strip.is_master() ) { string line1; - string line2; string fullname = route_signal->route().name(); if ( fullname.length() <= 6 ) @@ -1013,14 +1012,13 @@ void MackieControlProtocol::notify_name_changed( void *, RouteSignal * route_sig else { line1 = PBD::short_version( fullname, 6 ); - line2 = fullname.substr( fullname.length() - 6, 6 ); } route_signal->port().write_sysex( - builder.strip_display( strip.index(), 0, line1 ) + builder.strip_display( strip, 0, line1 ) ); route_signal->port().write_sysex( - builder.strip_display( strip.index(), 1, line2 ) + builder.strip_display_blank( strip, 1 ) ); } } |