prevent formation of new xfades when two regions are precisely co-terminal, and inval...
[ardour.git] / libs / ardour / crossfade.cc
index 47b07dc38defc3329e06072094bbda87097a81f1..302b19399e7d34fcc10ecf2b4f6f0544a2db698d 100644 (file)
@@ -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 */