13
0

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

View File

@ -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()) {