mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Automation Line may not exist after session re-load #8207
This commit is contained in:
parent
dccb2b650e
commit
d366b49447
1 changed files with 3 additions and 0 deletions
|
|
@ -2772,6 +2772,9 @@ RouteTimeAxisView::automation_child_by_alist_id (PBD::ID alist_id)
|
|||
for (list<ProcessorAutomationInfo*>::iterator i = processor_automation.begin(); i != processor_automation.end(); ++i) {
|
||||
for (vector<ProcessorAutomationNode*>::iterator ii = (*i)->lines.begin(); ii != (*i)->lines.end(); ++ii) {
|
||||
boost::shared_ptr<AutomationTimeAxisView> atv ((*ii)->view);
|
||||
if (!atv) {
|
||||
continue;
|
||||
}
|
||||
list<boost::shared_ptr<AutomationLine> > lines = atv->lines();
|
||||
for (list<boost::shared_ptr<AutomationLine> >::const_iterator li = lines.begin(); li != lines.end(); ++li) {
|
||||
if ((*li)->the_list()->id() == alist_id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue