13
0

Amend prev commit

This commit is contained in:
Robin Gareus 2022-09-12 20:10:54 +02:00
parent 91ba76fb0a
commit 75ad3832db
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -827,9 +827,9 @@ ProcessorEntry::plugin_preset_selected (ARDOUR::Plugin::PresetRecord preset)
boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (_processor); boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (_processor);
assert (pi); assert (pi);
if (!preset.label.empty()) { if (!preset.label.empty()) {
_pi->load_preset (preset); pi->load_preset (preset);
} else { } else {
pi->plugin->clear_preset(); pi->plugin()->clear_preset();
} }
} }