From f749d4f03e8c9c8151b7bf662204a88d53be3141 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 20 Apr 2021 13:39:59 -0600 Subject: [PATCH] fix rebase issue with positional math (we don't allow " - 1") --- libs/ardour/playlist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 03ccc4c317..9f9726c735 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -690,7 +690,7 @@ Playlist::add_region (boost::shared_ptr 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)); }