diff options
| -rw-r--r-- | src/object/sp-tspan.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/object/sp-tspan.cpp b/src/object/sp-tspan.cpp index 5ae889b9d..cee3f7d37 100644 --- a/src/object/sp-tspan.cpp +++ b/src/object/sp-tspan.cpp @@ -247,22 +247,6 @@ void SPTextPath::build(SPDocument *doc, Inkscape::XML::Node *repr) { this->readAttr( "side" ); this->readAttr( "xlink:href" ); - bool no_content = true; - - for (Inkscape::XML::Node* rch = repr->firstChild() ; rch != nullptr; rch = rch->next()) { - if ( rch->type() == Inkscape::XML::TEXT_NODE ) - { - no_content = false; - break; - } - } - - if ( no_content ) { - Inkscape::XML::Document *xml_doc = doc->getReprDoc(); - Inkscape::XML::Node* rch = xml_doc->createTextNode(""); - repr->addChild(rch, nullptr); - } - SPItem::build(doc, repr); } |
