summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-17 00:13:53 -0500
committerDavid Robillard <d@drobilla.net>2014-11-17 00:13:53 -0500
commit85cf4b4dbdaa842f5868ada761c20e5b529dd473 (patch)
treef60aeb0e8eca219ddeef75fe2b26ec8e63c5896f /gtk2_ardour/midi_time_axis.cc
parentc91b6912604c82e05c341881da9e871878b343b2 (diff)
Fix visibility of MIDI controller automation tracks across saves.
Fix some inaccurate/misleading comments that led to said bug. Gracefully handle the "impossible" case where we can't figure out a state ID for an automation track, instead of crashing.
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index 4d55f2e8e1..5f19e0e2a5 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -1303,7 +1303,9 @@ MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool
* since it will have been set visible by default.
*/
- if (existing->second->set_marked_for_display (show) && !no_redraw) {
+ existing->second->set_marked_for_display (show);
+
+ if (!no_redraw) {
request_redraw ();
}