summaryrefslogtreecommitdiff
path: root/libs/ardour/playlist.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-29 01:09:05 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-29 01:09:05 +0000
commit3150041423a199189c9b6ab292a078c51d9670c2 (patch)
treea5a92d2fc568edb7743e8018ca05d5de0f09c486 /libs/ardour/playlist.cc
parentbce90b1802565f62288a5081929244d60e15a5bd (diff)
(Hopefully) clarify operator= and copy construction behaviour of the Property hierarchy. Also make operator= copy the value but NOT the property ID; this stops e.g. a = b giving a the property ID of b and confusing things. Fixes some problems with save/restore of region sync position.
git-svn-id: svn://localhost/ardour2/branches/3.0@7707 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/playlist.cc')
-rw-r--r--libs/ardour/playlist.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc
index 4a5d65c903..87ed1ca03b 100644
--- a/libs/ardour/playlist.cc
+++ b/libs/ardour/playlist.cc
@@ -113,6 +113,13 @@ RegionListProperty::RegionListProperty (Playlist& pl)
}
+RegionListProperty::RegionListProperty (RegionListProperty const & p)
+ : PBD::SequenceProperty<std::list<boost::shared_ptr<Region> > > (p)
+ , _playlist (p._playlist)
+{
+
+}
+
RegionListProperty *
RegionListProperty::clone () const
{