From 38caac8648ce9ead343b2b78b9d602df6a1f5b59 Mon Sep 17 00:00:00 2001 From: martynshaw99 Date: Thu, 28 Oct 2010 23:22:02 +0000 Subject: [PATCH] Edgar's fix for problems with backslashes and double-quotes in the Audacity Nyquist text input widget, as approved by Steve, Al and Roger. --- src/effects/nyquist/Nyquist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index 5ada37d5c..6b2512001 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -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());