Fix automation range drag guard points

This addresses an issue with missing guard points at the
beginning of a range drag when the range is not snapped to
a musical grid.

Note that the code below "same thing for the end" does not use
.beats() either.
This commit is contained in:
Robin Gareus
2022-03-18 02:31:12 +01:00
parent a4459ebf9c
commit 139d54ac9b

View File

@@ -6608,8 +6608,8 @@ AutomationRangeDrag::motion (GdkEvent*, bool first_move)
* relative to the line origin
*/
timepos_t p (j->line->get_origin().distance (i->start()).beats());
timepos_t q (j->line->get_origin().distance (a).beats());
timepos_t p (j->line->get_origin().distance (i->start()));
timepos_t q (j->line->get_origin().distance (a));
/* XXX arguably ControlList::editor_add() should do this */