diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-06-07 08:50:16 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-06-07 08:50:16 +0000 |
| commit | dcf2de0b5adecd8357ee8055e5e51022adeb5832 (patch) | |
| tree | 13415f4e3ee36acb6d443c8e14fbde5e757bf921 /src/extension/parameter.cpp | |
| parent | remove duplicate entry in /ui/widget/Makefile_insert (diff) | |
| download | inkscape-dcf2de0b5adecd8357ee8055e5e51022adeb5832.tar.gz inkscape-dcf2de0b5adecd8357ee8055e5e51022adeb5832.zip | |
fixed string parameter to work with latex extension. will need further research... perhaps now it is broken on linux.
(bzr r3054)
Diffstat (limited to 'src/extension/parameter.cpp')
| -rw-r--r-- | src/extension/parameter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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; |
