1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 08:30:06 +02:00

Fix escape issue causing SAL to fail

And don't uppercase the line...DOH!
This commit is contained in:
Leland Lucius 2015-05-04 03:12:55 -05:00
parent 287c649f4f
commit b8fe0e6743

View File

@ -909,8 +909,7 @@ bool NyquistEffect::ProcessOne()
} }
if (mIsSal) { if (mIsSal) {
wxString str = mCmd; wxString str = EscapeString(mCmd);
EscapeString(str);
// this is tricky: we need SAL to call main so that we can get a // this is tricky: we need SAL to call main so that we can get a
// SAL traceback in the event of an error (sal-compile catches the // SAL traceback in the event of an error (sal-compile catches the
// error and calls sal-error-output), but SAL does not return values. // error and calls sal-error-output), but SAL does not return values.
@ -1493,7 +1492,7 @@ bool NyquistEffect::ParseProgram(wxInputStream & stream)
{ {
mIsSal = false; mIsSal = false;
} }
else if (line.MakeUpper().Find(wxT("RETURN")) != wxNOT_FOUND) else if (line.Upper().Find(wxT("RETURN")) != wxNOT_FOUND)
{ {
mIsSal = true; mIsSal = true;
} }