From 3150041423a199189c9b6ab292a078c51d9670c2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Aug 2010 01:09:05 +0000 Subject: (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 --- libs/ardour/playlist.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/ardour/playlist.cc') 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 > > (p) + , _playlist (p._playlist) +{ + +} + RegionListProperty * RegionListProperty::clone () const { -- cgit v1.2.3