From bbe5a375195443bf9235f859d58d533fe5815e00 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 24 Sep 2013 00:53:52 +0200 Subject: Fixed FeComponentTransfer. Fixed bugs: - https://launchpad.net/bugs/1229326 (bzr r12582) --- src/sp-object.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sp-object.cpp') 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 -- cgit v1.2.3