13
0

safety fix, in case non-Route stripable is selected

This commit is contained in:
Paul Davis 2019-03-20 20:50:29 -07:00
parent df90dbd7bb
commit 02684009eb

View File

@ -170,7 +170,9 @@ DuplicateRouteDialog::on_response (int response)
for (TrackSelection::iterator t = tracks.begin(); t != tracks.end(); ++t) {
RouteUI* rui = dynamic_cast<RouteUI*> (*t);
sl.push_back (rui->route());
if (rui) {
sl.push_back (rui->route());
}
}
sl.sort (Stripable::Sorter());