Fix generic UI crash when plugin has ctrl outputs -- #7937

build_control_ui() special cases `AutomationControl mcontrol = NULL`
to create read-only output display. So Iterating over
Evoral::Control that are not AutomationControl must not crash.

This fixes a bug introduced in a44fecb740.
"Edit with generic controls" caused crashes for plugins with ctrl outs.
This commit is contained in:
Robin Gareus
2020-03-25 16:36:54 +01:00
parent 807915b40c
commit 89904468b3

View File

@@ -359,7 +359,7 @@ GenericPluginUI::build ()
= boost::dynamic_pointer_cast<ARDOUR::AutomationControl>(
insert->control(param));
if (c->flags () & Controllable::HiddenControl) {
if (c && c->flags () & Controllable::HiddenControl) {
continue;
}