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