summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorAbhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom>2010-07-24 15:28:27 +0000
committerAbhishek Sharma public <spyzerdotabhishek0at-signgmaildotcom>2010-07-24 15:28:27 +0000
commit7396564ea83c67c0e40a8b0aa453a13ddf21e0e0 (patch)
treec3075988c60dd57917e7631f0d9dd0e321410522 /src/sp-object.cpp
parentMore on c++ification and some XML privatisation (diff)
downloadinkscape-7396564ea83c67c0e40a8b0aa453a13ddf21e0e0.tar.gz
inkscape-7396564ea83c67c0e40a8b0aa453a13ddf21e0e0.zip
Yet mor in c++ification
(bzr r9546.1.11)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index f23f374d4..80f39db4a 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -937,6 +937,13 @@ void SPObject::appendChild(Inkscape::XML::Node *child) {
repr->appendChild(child);
}
+void SPObject::addChild(Inkscape::XML::Node *child, Inkscape::XML::Node * prev)
+{
+ g_assert(this->repr);
+
+ repr->addChild(child,prev);
+}
+
void SPObject::releaseReferences() {
g_assert(this->document);
g_assert(this->repr);