diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-07-15 14:49:36 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-07-15 14:49:36 +0000 |
| commit | 65f7e8bc7a1aef9f4d6bf8d93fa8768158a0f1a4 (patch) | |
| tree | 16de9cc279109457c14dabed5930c42c91e1223b /src | |
| parent | Update. (diff) | |
| download | inkscape-65f7e8bc7a1aef9f4d6bf8d93fa8768158a0f1a4.tar.gz inkscape-65f7e8bc7a1aef9f4d6bf8d93fa8768158a0f1a4.zip | |
fix crash with empty parameter string
(bzr r3251)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/parameter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extension/parameter.cpp b/src/extension/parameter.cpp index b35052a0e..f59a5cc3d 100644 --- a/src/extension/parameter.cpp +++ b/src/extension/parameter.cpp @@ -917,6 +917,9 @@ ParamFloat::string (void) Glib::ustring * ParamString::string (void) { + if (_value == NULL) + return new Glib::ustring(""); + // 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); |
