Fix crash when using get_all_equivalent_regions wih VCAs in a session

This commit is contained in:
Robin Gareus 2022-06-22 22:22:52 +02:00
parent e8e21b3152
commit 7b7f17085b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 5 additions and 0 deletions

View File

@ -547,6 +547,11 @@ Editor::mapover_all_tracks_with_unique_playlists (sigc::slot<void, RouteTimeAxis
for (TrackViewList::const_iterator i = track_views.begin(); i != track_views.end(); ++i) {
RouteTimeAxisView* v = dynamic_cast<RouteTimeAxisView*> (*i);
if (!v) {
/* Ignore VCAs */
continue;
}
boost::shared_ptr<Track> t = v->track();
if (t) {
if (playlists.insert (t->playlist()).second) {