prepare for the day when there can be TimeAxisView's that are not RouteTimeAxisViews.

This commit is contained in:
Robin Gareus 2014-03-23 03:11:08 +01:00
parent 4ddd025139
commit 87c777450b
1 changed files with 7 additions and 6 deletions

View File

@ -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);