1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-25 14:07:13 +02:00

Fix crash bug (regression) in Automation

Somewhere along the line, GetEffectIdentifier got changed to GetEffectByIdentifier, leading to abuse of an iterator when attempting to invoke an effect by name.
This commit is contained in:
James Crook 2017-06-01 23:42:54 +01:00
parent beab669f42
commit 7e691ddf38

View File

@ -1341,7 +1341,7 @@ bool CommandManager::HandleTextualCommand(wxString & Str, CommandFlag flags, Com
const PluginDescriptor *plug = pm.GetFirstPlugin(PluginTypeEffect);
while (plug)
{
if (em.GetEffectByIdentifier(plug->GetID()).IsSameAs(Str))
if (em.GetEffectIdentifier(plug->GetID()).IsSameAs(Str))
{
return proj->OnEffect(plug->GetID(), AudacityProject::OnEffectFlags::kConfigured);
}