1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-17 09:07:41 +02:00

Bug 1946 - Nyquist ;type tool effects crash if returning labels from Nyquist

This commit is contained in:
James Crook 2018-08-24 16:53:34 +01:00
parent e1ae057806
commit 9b84deb43b

View File

@ -1360,6 +1360,12 @@ bool NyquistEffect::ProcessOne()
rval = nyx_error;
}
if ((rval == nyx_labels) && (GetType() == EffectTypeTool)) {
// Catch this first so that we can also handle other errors.
mDebugOutput = _("';type tool' effects cannot return labels from Nyquist.\n") + mDebugOutput;
rval = nyx_error;
}
if (rval == nyx_error) {
// Return value is not valid type.
// Show error in debug window if trace enabled, otherwise log.