13
0

move route_graph->rechain( r ); into Session::resort_routes_using

git-svn-id: svn://localhost/ardour2/branches/3.0@7227 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Torben Hohn 2010-06-03 20:38:01 +00:00
parent 932d6c79d0
commit 1abbb506b8

View File

@ -1324,7 +1324,6 @@ Session::resort_routes ()
shared_ptr<RouteList> r = writer.get_copy ();
resort_routes_using (r);
/* writer goes out of scope and forces update */
route_graph->rechain( r );
}
//route_graph->dump(1);
@ -1382,6 +1381,8 @@ Session::resort_routes_using (shared_ptr<RouteList> r)
RouteSorter cmp;
r->sort (cmp);
route_graph->rechain( r );
#ifndef NDEBUG
DEBUG_TRACE (DEBUG::Graph, "Routes resorted, order follows:\n");
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {