13
0

fix importing A2 automation data - fixes #6359

This commit is contained in:
Robin Gareus 2015-06-01 18:17:34 +02:00
parent 1fe738a36e
commit ce69096fae

View File

@ -1189,7 +1189,7 @@ PluginInsert::set_parameter_state_2X (const XMLNode& node, int version)
boost::shared_ptr<AutomationControl> c = boost::dynamic_pointer_cast<AutomationControl>(
control(Evoral::Parameter(PluginAutomation, 0, port_id), true));
if (c) {
if (c && c->alist()) {
if (!child->children().empty()) {
c->alist()->set_state (*child->children().front(), version);