mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 14:17:21 +01:00
Fix another assertion failure if a saved selection doesn't correspond to the things that are actually present in the session file.
git-svn-id: svn://localhost/ardour2/branches/3.0@7769 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bc8aeb0425
commit
4ce12d75e1
1 changed files with 12 additions and 11 deletions
|
|
@ -1143,18 +1143,19 @@ Selection::set_state (XMLNode const & node, int)
|
|||
|
||||
PBD::ID id (prop_id->value ());
|
||||
RouteTimeAxisView* rtv = editor->get_route_view_by_route_id (id);
|
||||
assert (rtv);
|
||||
|
||||
boost::shared_ptr<AutomationTimeAxisView> atv = rtv->automation_child (EventTypeMap::instance().new_parameter (prop_parameter->value ()));
|
||||
|
||||
/* the automation could be for an entity that was never saved
|
||||
in the session file. Don't freak out if we can't find
|
||||
it.
|
||||
*/
|
||||
|
||||
if (atv) {
|
||||
add (atv.get());
|
||||
}
|
||||
if (rtv) {
|
||||
boost::shared_ptr<AutomationTimeAxisView> atv = rtv->automation_child (EventTypeMap::instance().new_parameter (prop_parameter->value ()));
|
||||
|
||||
/* the automation could be for an entity that was never saved
|
||||
in the session file. Don't freak out if we can't find
|
||||
it.
|
||||
*/
|
||||
|
||||
if (atv) {
|
||||
add (atv.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue