prepare for the day when there can be TimeAxisView's that are not RouteTimeAxisViews.
This commit is contained in:
parent
4ddd025139
commit
87c777450b
@ -6495,13 +6495,14 @@ Editor::remove_tracks ()
|
||||
|
||||
for (TrackSelection::iterator x = ts.begin(); x != ts.end(); ++x) {
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*x);
|
||||
if (rtv) {
|
||||
if (!rtv) {
|
||||
continue;
|
||||
}
|
||||
if (rtv->is_track()) {
|
||||
ntracks++;
|
||||
} else {
|
||||
nbusses++;
|
||||
}
|
||||
}
|
||||
routes.push_back (rtv->_route);
|
||||
|
||||
if (rtv->route()->is_master() || rtv->route()->is_monitor()) {
|
||||
|
Loading…
Reference in New Issue
Block a user