From: johanengelen Date: Thu, 7 Jun 2007 08:50:16 +0000 (+0000) Subject: fixed string parameter to work with latex extension. will need further research.... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9cf64f8d9a6acf70c3da3ae5db31e625bc9677f;p=inkscape.git fixed string parameter to work with latex extension. will need further research... perhaps now it is broken on linux. --- diff --git a/src/extension/parameter.cpp b/src/extension/parameter.cpp index 66405e57e..50b90f71c 100644 --- a/src/extension/parameter.cpp +++ b/src/extension/parameter.cpp @@ -901,9 +901,11 @@ ParamFloat::string (void) Glib::ustring * ParamString::string (void) { - gchar * esc = g_strescape(_value, NULL); - Glib::ustring escaped(esc); - g_free(esc); + // FIXME: I think the string should NOT be escaped. Just put between "..." + // Otherwise \frac{1}{2} will become \\frac{1}{2} and then the LaTeX effect won't work.... + //gchar * esc = g_strescape(_value, NULL); + Glib::ustring escaped(_value); + //g_free(esc); #ifdef ESCAPE_DOLLAR_COMMANDLINE // escape the dollar sign Glib::ustring::iterator i;