- if (j == tabs.end()) {
-
- /* already run out of tabs, so no edit group */
- rtv->route()->set_route_group (0, this);
-
- } else {
-
- if (y >= j->to) {
- /* this tab finishes before this track starts, so onto the next tab */
- ++j;
- }
-
- double const h = y + (*i)->effective_height() / 2;
-
- if (j->from < h && j->to > h) {
- rtv->route()->set_route_group (j->group, this);
- } else {
- rtv->route()->set_route_group (0, this);
- }
-
+ if (y >= t->to) {
+ /* tab finishes before this track starts */
+ break;
+ }
+
+ double const h = y + (*i)->effective_height() / 2;
+
+ if (t->from < h && t->to > h) {
+ routes.push_back (rtv->route ());