From 5212fc967723f3c5615d85a0812325353ea94944 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 22 Nov 2021 15:59:32 -0600 Subject: [PATCH] MIDI Program Changes: dragging patches was resulting in the wrong location or disappearing altogether a Program Change's position is referenced from the midi Source which might not be the same as the region start --- 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 5faca1f24d..18f7732547 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -6846,7 +6846,7 @@ PatchChangeDrag::finished (GdkEvent* ev, bool movement_occurred) f = max (f, r->position ()); f = min (f, r->nt_last ()); - _region_view->move_patch_change (*_patch_change, _region_view->region()->absolute_time_to_region_beats (f)); + _region_view->move_patch_change (*_patch_change, _region_view->region()->absolute_time_to_source_beats (f)); } void