From 4e6d0c9e61b62931a4a2120b548f0ff02a966351 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 20 Jan 2013 08:56:00 +0000 Subject: Show matching controller name in automation lane header. Completely eliminate static MIDI controller name code. Reduce dependency on midnam_patch.h (which would have saved me several hours if I did it earlier). Store controller name numbers as an integer. Keep controller names in a map keyed by int instead of a list for fast lookup. More cleanup of MIDI::Name code. git-svn-id: svn://localhost/ardour2/branches/3.0@13927 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_region_view.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/midi_region_view.cc') diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index acd63469c6..542894af81 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1820,10 +1820,9 @@ MidiRegionView::add_canvas_patch_change (MidiModel::PatchChangePtr patch, const displaytext, height, x, 1.0, - instrument_info(), + instrument_info(), patch, - active_channel) - ); + active_channel)); if (patch_change->width() < _pixel_width) { // Show unless patch change is beyond the region bounds -- cgit v1.2.3