From 57eda4f7ee2e10321a55456565cada7eed548d2d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 11 Jul 2025 17:40:58 -0600 Subject: [PATCH] remove 2nd of 3 #warnings from the EditingContext refactor I'm not 100% sure this is correct, but it doesn't really matter - velocity lollipop drag are vertical only --- gtk2_ardour/editor_drag.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 00bfe952b4..d5f014e680 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -7235,10 +7235,15 @@ void LollipopDrag::setup_pointer_offset () { NoteBase* note = static_cast (_primary->get_data (X_("note"))); -#warning paul this needs to use some other math in the non-time axis view case - _pointer_offset = _display->midi_view().midi_region()->source_beats_to_absolute_time (note->note()->time ()).distance (raw_grab_time ()); + + if (_display->midi_view().show_source()) { + _pointer_offset = timepos_t (note->note()->time ()).distance (raw_grab_time ()); + } else { + _pointer_offset = _display->midi_view().midi_region()->source_beats_to_absolute_time (note->note()->time ()).distance (raw_grab_time ()); + } } + /********/ template