summaryrefslogtreecommitdiff
path: root/libs/ardour/route_group.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r--libs/ardour/route_group.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc
index d59ec82236..f1a3a67a89 100644
--- a/libs/ardour/route_group.cc
+++ b/libs/ardour/route_group.cc
@@ -71,6 +71,8 @@ RouteGroup::set_name (string str)
int
RouteGroup::add (boost::shared_ptr<Route> r)
{
+ assert (find (routes->begin(), routes->end(), r) == routes->end ());
+
r->leave_route_group ();
routes->push_back (r);