13
0

fix rebase issue with positional math (we don't allow " - 1")

This commit is contained in:
Paul Davis 2021-04-20 13:39:59 -06:00
parent bc98af7433
commit f749d4f03e

View File

@ -690,7 +690,7 @@ Playlist::add_region (boost::shared_ptr<Region> region, timepos_t const & positi
timepos_t pos = position;
if (times == 1 && auto_partition) {
partition_internal (pos - 1, (pos + region->length ()), true, rlock.thawlist);
partition_internal (pos.decrement(), (pos + region->length ()), true, rlock.thawlist);
for (RegionList::iterator i = rlock.thawlist.begin (); i != rlock.thawlist.end (); ++i) {
_session.add_command (new StatefulDiffCommand (*i));
}