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);