13
0

NoteCreateDrag::grid_frames works over a tempo change.

This commit is contained in:
nick_m 2016-11-20 04:42:20 +11:00
parent 0e0ef41ed4
commit 0e0b7667ed

View File

@ -6208,8 +6208,11 @@ NoteCreateDrag::grid_frames (framepos_t t) const
if (!success) {
grid_beats = Evoral::Beats(1);
}
const Evoral::Beats t_beats = _region_view->region_frames_to_region_beats (t);
return _region_view->region_beats_to_region_frames (t_beats + grid_beats)
- _region_view->region_beats_to_region_frames (t_beats);
return _region_view->region_beats_to_region_frames (grid_beats);
}
void