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
This commit is contained in:
Ben Loftis 2021-11-22 15:59:32 -06:00
parent 878393e68b
commit 5212fc9677
1 changed files with 1 additions and 1 deletions

View File

@ -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