diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-27 12:26:00 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-27 12:26:00 +0000 |
commit | d0d160e566c392f2ce100185ef547fdd623ce687 (patch) | |
tree | 25f4463c1b9ecce574ec0d473e0842729b7002bb /gtk2_ardour/automation_time_axis.cc | |
parent | 5a58f4381bf4874e893fdef79016521d28fcace8 (diff) |
Fix crash on clear option for automation tracks (#3195). Also fix state change signalling so that lines reappear on undoing a clear.
git-svn-id: svn://localhost/ardour2/branches/3.0@7178 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 51923089ad..9163b10dc1 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -385,11 +385,10 @@ AutomationTimeAxisView::set_interpolation (AutomationList::InterpolationStyle st void AutomationTimeAxisView::clear_clicked () { - _session->begin_reversible_command (_("clear automation")); if (_line) { + _session->begin_reversible_command (_("clear automation")); _line->clear (); } - _session->commit_reversible_command (); } void |