Fix crash when NullAutomation is created (which shouldn't be happening, but hey...).
git-svn-id: svn://localhost/ardour2/branches/3.0@4598 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5f7b4de024
commit
fb254fb2fc
@ -387,9 +387,7 @@ AudioTimeAxisView::ensure_pan_views (bool show)
|
||||
*this,
|
||||
false,
|
||||
parent_canvas,
|
||||
name)
|
||||
|
||||
);
|
||||
name));
|
||||
|
||||
add_automation_child (*p, pan_track, show);
|
||||
}
|
||||
|
@ -494,6 +494,11 @@ MidiTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool
|
||||
/* These controllers are region "automation", so we do not create
|
||||
* an AutomationList/Line for the track */
|
||||
|
||||
if (param.type() == NullAutomation) {
|
||||
cerr << "WARNING: Attempt to create NullAutomation child, ignoring" << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
AutomationTracks::iterator existing = _automation_tracks.find(param);
|
||||
if (existing != _automation_tracks.end())
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user