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/audio_playlist.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/audio_playlist.cc') diff --git a/libs/ardour/audio_playlist.cc b/libs/ardour/audio_playlist.cc index 01ffb0b9fb..c3d4bfc8de 100644 --- a/libs/ardour/audio_playlist.cc +++ b/libs/ardour/audio_playlist.cc @@ -446,6 +446,10 @@ AudioPlaylist::check_dependents (boost::shared_ptr r, bool norefresh) continue; } + if (other->position() == r->position() && other->length() == r->length()) { + /* precise overlay of two regions - no xfade */ + continue; + } if (other->layer() < region->layer()) { top = region; -- cgit v1.2.3