From 4724683b5f1ca1949aa4fb5e1fd2fd792afc1832 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 11 Jun 2024 15:15:28 -0600 Subject: [PATCH] fix placement of ghost note while in draw mode --- gtk2_ardour/midi_view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_view.cc b/gtk2_ardour/midi_view.cc index 1438a44313..9df617af1b 100644 --- a/gtk2_ardour/midi_view.cc +++ b/gtk2_ardour/midi_view.cc @@ -3982,7 +3982,8 @@ void MidiView::update_ghost_note (double x, double y, uint32_t state) { assert (_ghost_note); - x = std::max(0.0, x); + x = _editing_context.canvas_to_timeline (x); + x = std::max (0.0, x); const double global_x (x);