diff options
author | Robin Gareus <robin@gareus.org> | 2014-03-23 03:11:08 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-03-23 03:11:08 +0100 |
commit | 87c777450bae5497b2fcbb3f4d401a426252a87d (patch) | |
tree | 762c6a7514349081167d9773a812d2833ab4ef5b /gtk2_ardour | |
parent | 4ddd0251390745836809b521b0215c03bfa2e73f (diff) |
prepare for the day when there can be TimeAxisView's that are not RouteTimeAxisViews.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index abc90d2f59..f764af3671 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -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); |