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:
David Robillard 2009-02-16 04:53:01 +00:00
parent 5f7b4de024
commit fb254fb2fc
2 changed files with 6 additions and 3 deletions

View File

@ -387,9 +387,7 @@ AudioTimeAxisView::ensure_pan_views (bool show)
*this,
false,
parent_canvas,
name)
);
name));
add_automation_child (*p, pan_track, show);
}

View File

@ -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;