summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/playlist.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-30 23:41:17 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-30 23:41:17 +0000
commitb93254f27550ddffbc9d6c0f043e4e24cfe536c2 (patch)
treecb125b9640e4985f3d1a6b56c16bb44d213a9d75 /libs/ardour/ardour/playlist.h
parent0be530821c5afb2bb7377efdb9eb886e350d0544 (diff)
Anywhere that deletes regions needs to use a rdiff() on the playlist
for the undo history, so that changes to regions' layering_index get stored in the undo record. Make Playlist::update use add_region_internal so that undone regions don't have their layering_index corrupted. Setup layering indices on relayer() so that deletion of regions causes an update. git-svn-id: svn://localhost/ardour2/branches/3.0@11123 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/playlist.h')
-rw-r--r--libs/ardour/ardour/playlist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/playlist.h b/libs/ardour/ardour/playlist.h
index 67cc1ccf54..626df720bd 100644
--- a/libs/ardour/ardour/playlist.h
+++ b/libs/ardour/ardour/playlist.h
@@ -378,6 +378,10 @@ public:
with its constituent regions
*/
virtual void pre_uncombine (std::vector<boost::shared_ptr<Region> >&, boost::shared_ptr<Region>) {}
+
+private:
+
+ void setup_layering_indices (RegionList const &) const;
};
} /* namespace ARDOUR */