summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r--gtk2_ardour/automation_time_axis.cc10
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);