From a0ad7177f6989301f695c90eea3c4d0fbc0d262a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 5 May 2010 14:54:28 +0000 Subject: when splitting to mono regions, don't make the new mono regions children of existing regions in the list (involves changingthe definition of source-equivalent, but to its correct and intended meaning) git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7063 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audioregion.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index c329a26b1c..0eff9a2e3d 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -1272,11 +1272,17 @@ AudioRegion::source_equivalent (boost::shared_ptr o) const { boost::shared_ptr other = boost::dynamic_pointer_cast(o); - if (!other) + if (!other) { return false; + } SourceList::const_iterator i; SourceList::const_iterator io; + + if ((sources.size() != other->sources.size()) || + (master_sources.size() != other->master_sources.size())) { + return false; + } for (i = sources.begin(), io = other->sources.begin(); i != sources.end() && io != other->sources.end(); ++i, ++io) { if ((*i)->id() != (*io)->id()) { -- cgit v1.2.3