diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-01-24 19:16:33 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-01-24 19:16:33 +0000 |
| commit | 1bdfa9fed89e28b00dd443e5d05cf8c1704f64eb (patch) | |
| tree | b296c0392c839c8560b4a3b90b626e4059dea76a /src/text-chemistry.cpp | |
| parent | patch 1642531 (diff) | |
| download | inkscape-1bdfa9fed89e28b00dd443e5d05cf8c1704f64eb.tar.gz inkscape-1bdfa9fed89e28b00dd443e5d05cf8c1704f64eb.zip | |
fix crash 1640798
(bzr r2275)
Diffstat (limited to 'src/text-chemistry.cpp')
| -rw-r--r-- | src/text-chemistry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text-chemistry.cpp b/src/text-chemistry.cpp index 0a655fdcb..79d5e3a2d 100644 --- a/src/text-chemistry.cpp +++ b/src/text-chemistry.cpp @@ -397,6 +397,10 @@ text_unflow () SPItem *flowtext = SP_ITEM(items->data); + if (sp_te_get_string_multiline(flowtext) == NULL) { // flowtext is empty + continue; + } + /* Create <text> */ Inkscape::XML::Node *rtext = xml_doc->createElement("svg:text"); rtext->setAttribute("xml:space", "preserve"); // we preserve spaces in the text objects we create |
