Fix another crash on session creation if the stored selection no longer exists in the session.

git-svn-id: svn://localhost/ardour2/branches/3.0@7711 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-30 01:37:56 +00:00
parent b75956d35d
commit 80084dcdf3

View 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);
if (rtv) {
add (rtv);
}
} else if ((*i)->name() == X_("AutomationView")) {