13
0

step entry: do not pass auto_partition=true to Playlist::add_region()

This code path is only followed if there is no region at the start of step entry, so auto-partition
makes no sense anyway
This commit is contained in:
Paul Davis 2022-09-24 14:53:06 -06:00
parent fba4a5ff73
commit e9f98fe230

View File

@ -118,7 +118,7 @@ StepEditor::prepare_step_edit_region ()
const Meter& m = Temporal::TempoMap::use()->meter_at (step_edit_insert_position);
/* 1 bar long region */
step_edit_region = _mtv.add_region (step_edit_insert_position, timecnt_t (Beats::beats (m.divisions_per_bar()), step_edit_insert_position), true);
step_edit_region = _mtv.add_region (step_edit_insert_position, timecnt_t (Beats::beats (m.divisions_per_bar()), step_edit_insert_position));
RegionView* rv = _mtv.midi_view()->find_view (step_edit_region);
step_edit_region_view = dynamic_cast<MidiRegionView*>(rv);