fix computation of recording rect/layer when recording in stacked view

Code was using Region::start() which is an offset into the source, but should use
Region::position() which is the position on the timeline
This commit is contained in:
Paul Davis 2020-10-02 12:13:53 -06:00
parent c069709939
commit 05018164df

View File

@ -721,7 +721,7 @@ StreamView::setup_new_rec_layer_time (boost::shared_ptr<Region> region)
top-layered region after the start of the region we are recording and make a note of it.
*/
if (_layer_display == Stacked) {
_new_rec_layer_time = _trackview.track()->playlist()->find_next_top_layer_position (region->start());
_new_rec_layer_time = _trackview.track()->playlist()->find_next_top_layer_position (region->position());
} else {
_new_rec_layer_time = max_samplepos;
}