fix out-by-one error when partitioning a region - if a region continues to exist...
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Nov 2009 19:12:37 +0000 (19:12 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Nov 2009 19:12:37 +0000 (19:12 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6010 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/playlist.cc

index b8dc905e84e170ac5e601c7a026873a39d589b3e..d7a58dee200ac6f3ee968bfdf39ba37cbc1c8c81 100644 (file)
@@ -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) {