From 0eff20ba7952a46a0a6d16c34f5dc0067172bd0b Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 24 Jan 2007 19:16:33 +0000 Subject: [PATCH] fix crash 1640798 --- src/text-chemistry.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 */ Inkscape::XML::Node *rtext = xml_doc->createElement("svg:text"); rtext->setAttribute("xml:space", "preserve"); // we preserve spaces in the text objects we create -- 2.30.2