mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-19 23:21:33 +01: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:
@@ -655,7 +655,8 @@ bool EffectNyquist::ProcessOne()
|
|||||||
}
|
}
|
||||||
else if (mControls[j].type == NYQ_CTRL_STRING) {
|
else if (mControls[j].type == NYQ_CTRL_STRING) {
|
||||||
wxString str = mControls[j].valStr;
|
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"),
|
cmd += wxString::Format(wxT("(setf %s \"%s\")\n"),
|
||||||
mControls[j].var.c_str(),
|
mControls[j].var.c_str(),
|
||||||
str.c_str());
|
str.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user