From 90ae38e353d5486f1696eb9cede157fbd5e11dee Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 19 Dec 2022 12:17:36 -0700 Subject: [PATCH] note create drag: tweak to fix dragging when snap is not bars --- gtk2_ardour/editor_drag.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index e8770bcfef..cc62e58608 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -6749,7 +6749,7 @@ NoteCreateDrag::motion (GdkEvent* event, bool) //when the user clicks and starts a drag to define the note's length, require notes to be at least |this| long const Temporal::Beats min_length (_region_view->get_draw_length_beats (pos)); Temporal::Beats aligned_beats = round_to_grid (pos, event); - _note[1] = std::max (aligned_beats, (pos.beats() + min_length)); + _note[1] = std::max (aligned_beats, (_note[0].beats() + min_length)); const timecnt_t rrp1 (_region_view->region()->region_relative_position (_note[0])); const timecnt_t rrp2 (_region_view->region()->region_relative_position (_note[1]));