summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index fa7d30dab..6fd4de43b 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -599,6 +599,7 @@ void SPObject::child_added(Inkscape::XML::Node *child, Inkscape::XML::Node *ref)
std::string node = e.what();
// special cases
+ if (node.empty()) return; // comments, usually
if (node == "rdf:RDF") return; // no SP node yet
if (node == "inkscape:clipboard") return; // SP node not necessary
@@ -651,6 +652,7 @@ void SPObject::build(SPDocument *document, Inkscape::XML::Node *repr) {
const std::string typeString = NodeTraits::get_type_string(*rchild);
// special cases
+ if (typeString.empty()) continue; // comments, usually
if (typeString == "rdf:RDF") continue; // no SP node yet
if (typeString == "inkscape:clipboard") continue; // SP node not necessary