13
0

Fix MIDI rec-rectangle when rec-arm while looping

This commit is contained in:
Robin Gareus 2021-07-12 02:12:27 +02:00
parent 2e90a58611
commit 9e2c5f4ffc
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -508,9 +508,7 @@ MidiStreamView::setup_rec_box ()
boost::shared_ptr<MidiRegion> region (boost::dynamic_pointer_cast<MidiRegion>
(RegionFactory::create (sources, plist, false)));
if (region) {
region->set_start (_trackview.track()->current_capture_start()
- _trackview.track()->get_capture_start_sample (0));
region->set_position (_trackview.session()->transport_sample());
region->set_position (_trackview.track()->current_capture_start ());
RegionView* rv = add_region_view_internal (region, false, true);
MidiRegionView* mrv = dynamic_cast<MidiRegionView*> (rv);