1
0
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:
martynshaw99 2010-10-28 23:22:02 +00:00
parent b368c2d4d2
commit 38caac8648

View File

@ -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());