diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-07-17 03:10:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-07-17 03:10:40 +0000 |
commit | 3c252e9321dccf9b653b6b9ab4a7ffe5cda31b79 (patch) | |
tree | b8afdbe754818713249fb9d14e5b8a79ab24243d /gtk2_ardour/automation_time_axis.cc | |
parent | 539b94490f7ab660f24b3de80df5514f61d481b0 (diff) |
lots more fidgety work on automation. sort of works now, but undo/redo needs attention
git-svn-id: svn://localhost/ardour2/branches/3.0@13047 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index da6b66994c..c72602bf6c 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -565,6 +565,15 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, framepos_t when, return; } + boost::shared_ptr<AutomationList> list = _line->the_list (); + + if (list->in_write_pass()) { + /* do not allow the GUI to add automation events during an + automation write pass. + */ + return; + } + double x = 0; _canvas_display->w2i (x, y); @@ -577,7 +586,6 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, framepos_t when, _line->view_to_model_coord (x, y); - boost::shared_ptr<AutomationList> list = _line->the_list (); _editor.snap_to_with_modifier (when, event); |