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:
parent
e1ae057806
commit
9b84deb43b
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user