mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Edgar's fix for problems with backslashes and double-quotes in the Audacity Nyquist text input widget, as approved by Steve, Al and Roger.
This commit is contained in:
parent
b368c2d4d2
commit
38caac8648
@ -655,7 +655,8 @@ bool EffectNyquist::ProcessOne()
|
||||
}
|
||||
else if (mControls[j].type == NYQ_CTRL_STRING) {
|
||||
wxString str = mControls[j].valStr;
|
||||
str.Replace(wxT("\""), wxT("'"));
|
||||
str.Replace(wxT("\\"), wxT("\\\\"));
|
||||
str.Replace(wxT("\""), wxT("\\\""));
|
||||
cmd += wxString::Format(wxT("(setf %s \"%s\")\n"),
|
||||
mControls[j].var.c_str(),
|
||||
str.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user