summaryrefslogtreecommitdiffstats
path: root/src/object/sp-tspan.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-09-30 15:20:39 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-09-30 15:20:39 +0000
commit11049d1bf9ce51e5e924e8c140f719849208e094 (patch)
treec6c33a404aab6a0174fa025b30686f7abb6f393e /src/object/sp-tspan.cpp
parentApply a Nathan Lee fix to all LPE changing from SP_ACTIVE_DOCUMET to LPE->doc... (diff)
downloadinkscape-11049d1bf9ce51e5e924e8c140f719849208e094.tar.gz
inkscape-11049d1bf9ce51e5e924e8c140f719849208e094.zip
Don't create empty text node when reading in "textPath".
Fix for https://gitlab.com/inkscape/inbox/issues/512
Diffstat (limited to 'src/object/sp-tspan.cpp')
-rw-r--r--src/object/sp-tspan.cpp16
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);
}