From 97f0fac7d544391d9631127aeaf8fe98fa74baf1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 19 Sep 2022 21:14:10 +0200 Subject: [PATCH] Copy region properties (2/2) - see prev commit --- gtk2_ardour/editor_ops.cc | 4 ++-- gtk2_ardour/midi_time_axis.cc | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 1ae35f3392..b4727319d2 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -7588,7 +7588,7 @@ Editor::split_region_at_points (boost::shared_ptr r, AnalysisFeatureList /* do NOT announce new regions 1 by one, just wait till they are all done */ - PropertyList plist; + PropertyList plist (r->properties ()); plist.add (ARDOUR::Properties::start, file_start); plist.add (ARDOUR::Properties::length, len); @@ -7617,7 +7617,7 @@ Editor::split_region_at_points (boost::shared_ptr r, AnalysisFeatureList RegionFactory::region_name (new_name, r->name()); /* Add the final region */ - PropertyList plist; + PropertyList plist (r->properties ()); plist.add (ARDOUR::Properties::start, r->start() + pos); plist.add (ARDOUR::Properties::length, (r->position() + pos).distance (r->end())); diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index a572631ebc..6d0ab1b5d3 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -1707,11 +1707,7 @@ MidiTimeAxisView::add_region (timepos_t const & f, timecnt_t const & length, boo { PropertyList plist; - - plist.add (ARDOUR::Properties::start, start); - plist.add (ARDOUR::Properties::length, length); plist.add (ARDOUR::Properties::name, region->name()); - region = RegionFactory::create (region, plist, false); }