From 7a536524dbc3fc4805dc0f29b286b417bde533f1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 19 Jan 2021 13:04:34 -0700 Subject: [PATCH] no need to compute x-axis coordinate when adding an automation event --- gtk2_ardour/automation_time_axis.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index d3623cbb6f..c130b1a919 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -783,7 +783,7 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, samplepos_t sampl /* compute vertical fractional position */ y = 1.0 - (y / _line->height()); /* map using line */ - _line->view_to_model_coord (x, y); + _line->view_to_model_coord_y (y); } XMLNode& before = list->get_state();