mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Bug1858: Allow empty default choice on $ control lines (again)
This commit is contained in:
parent
05ef58753a
commit
37541de6be
@ -1865,7 +1865,7 @@ bool NyquistEffect::Parse(
|
||||
return true;
|
||||
}
|
||||
|
||||
if (len >= 6 && tokens[0] == wxT("control")) {
|
||||
if (len >= 5 && tokens[0] == wxT("control")) {
|
||||
NyqControl ctrl;
|
||||
|
||||
ctrl.var = tokens[1];
|
||||
@ -1874,7 +1874,7 @@ bool NyquistEffect::Parse(
|
||||
ctrl.label = tokens[4];
|
||||
|
||||
// valStr may or may not be a quoted string
|
||||
ctrl.valStr = tokens[5];
|
||||
ctrl.valStr = len > 5 ? tokens[5] : wxT("");
|
||||
ctrl.val = GetCtrlValue(ctrl.valStr);
|
||||
if (ctrl.valStr[0] == wxT('(') || ctrl.valStr[0] == wxT('"'))
|
||||
ctrl.valStr = UnQuote( ctrl.valStr );
|
||||
|
Loading…
x
Reference in New Issue
Block a user