From ce03319dd113b8a6c109414413ad01550f774d75 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 29 Jan 2011 01:03:05 +0000 Subject: prevent formation of new xfades when two regions are precisely co-terminal, and invalidate existing xfades if their participants become co-terminal git-svn-id: svn://localhost/ardour2/branches/3.0@8605 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/crossfade.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/ardour/crossfade.cc') diff --git a/libs/ardour/crossfade.cc b/libs/ardour/crossfade.cc index 47b07dc38d..302b19399e 100644 --- a/libs/ardour/crossfade.cc +++ b/libs/ardour/crossfade.cc @@ -441,6 +441,13 @@ Crossfade::refresh () Invalidated (shared_from_this()); return false; } + + /* regions must cannot be identically sized and placed */ + + if (_in->position() == _out->position() && _in->length() == _out->length()) { + Invalidated (shared_from_this()); + return false; + } /* layer ordering cannot change */ -- cgit v1.2.3