13
0

Non-numeric Properties are not automatable

Fixes a crash, when the Generic-UI tries to access the AutomationList
of LV2 URID or String Properties.
This commit is contained in:
Robin Gareus 2017-09-08 13:16:37 +02:00
parent 4459761f4d
commit 8bc2bf0155

View File

@ -492,7 +492,11 @@ PluginInsert::create_automatable_parameters ()
if (Variant::type_is_numeric(desc.datatype)) {
list = boost::shared_ptr<AutomationList>(new AutomationList(param, desc));
}
add_control (boost::shared_ptr<AutomationControl> (new PluginPropertyControl(this, param, desc, list)));
boost::shared_ptr<AutomationControl> c (new PluginPropertyControl(this, param, desc, list));
if (!Variant::type_is_numeric(desc.datatype)) {
c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::NotAutomatable));
}
add_control (c);
}
}