summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-11-03 19:12:37 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-11-03 19:12:37 +0000
commitc641b92c123ee7539790f9a9a1214d03d305e26c (patch)
treefd9ac9d9dee4404a11b5a9b55c1851aa53105e0a
parent3c19ff310fddf19751b5767fc267612f68406605 (diff)
fix out-by-one error when partitioning a region - if a region continues to exist to the left of the cut position, its length before this fix was 1 sample too long
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6010 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/playlist.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc
index b8dc905e84..d7a58dee20 100644
--- a/libs/ardour/playlist.cc
+++ b/libs/ardour/playlist.cc
@@ -794,7 +794,7 @@ Playlist::partition_internal (nframes_t start, nframes_t end, bool cutting, Regi
current->freeze ();
thawlist.push_back (current);
- current->cut_end (pos2, this);
+ current->cut_end (pos2 - 1, this);
} else if (overlap == OverlapEnd) {
@@ -823,7 +823,7 @@ Playlist::partition_internal (nframes_t start, nframes_t end, bool cutting, Regi
current->freeze ();
thawlist.push_back (current);
- current->cut_end (pos2, this);
+ current->cut_end (pos2 - 1, this);
} else if (overlap == OverlapStart) {