Fix another crash on session creation if the stored selection no longer exists in...
authorCarl Hetherington <carl@carlh.net>
Mon, 30 Aug 2010 01:37:56 +0000 (01:37 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 30 Aug 2010 01:37:56 +0000 (01:37 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7711 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/selection.cc

index 42f1a80f0b117671a9c75f7a873e52fce06ce672..d04c986092ab2235026f7d0f2ae937bfe78f5571 100644 (file)
@@ -1129,8 +1129,9 @@ Selection::set_state (XMLNode const & node, int)
                        assert (prop_id);
                        PBD::ID id (prop_id->value ());
                        RouteTimeAxisView* rtv = editor->get_route_view_by_route_id (id);
-                       assert (rtv);
-                       add (rtv);
+                       if (rtv) {
+                               add (rtv);
+                       }
                        
                } else if ((*i)->name() == X_("AutomationView")) {