summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-09-23 22:53:52 +0000
committerMarkus Engel <markus.engel@tum.de>2013-09-23 22:53:52 +0000
commitbbe5a375195443bf9235f859d58d533fe5815e00 (patch)
tree023fcc2171c19e48fa5aaf4326abf9ef717e6035 /src/sp-object.cpp
parentfix crash on uninitialized unittracker for spinbuttons. fixes crash on changi... (diff)
downloadinkscape-bbe5a375195443bf9235f859d58d533fe5815e00.tar.gz
inkscape-bbe5a375195443bf9235f859d58d533fe5815e00.zip
Fixed FeComponentTransfer.
Fixed bugs: - https://launchpad.net/bugs/1229326 (bzr r12582)
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