summaryrefslogtreecommitdiffstats
path: root/src/xml/simple-node.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-03-20 22:54:29 +0000
committermental <mental@users.sourceforge.net>2007-03-20 22:54:29 +0000
commit5063f31f609ad9c89e7b6d0667c39bc4fad35c27 (patch)
tree70d2c4b365d2cf1d2272fb015297816b92f604f3 /src/xml/simple-node.cpp
parentImplementing feature request #1673807: snapping of gradient handles (diff)
downloadinkscape-5063f31f609ad9c89e7b6d0667c39bc4fad35c27.tar.gz
inkscape-5063f31f609ad9c89e7b6d0667c39bc4fad35c27.zip
plumb XML::Document parameter into duplication, courtesy of bryce
(bzr r2723)
Diffstat (limited to 'src/xml/simple-node.cpp')
-rw-r--r--src/xml/simple-node.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xml/simple-node.cpp b/src/xml/simple-node.cpp
index f439243cd..c8b0828c4 100644
--- a/src/xml/simple-node.cpp
+++ b/src/xml/simple-node.cpp
@@ -175,14 +175,13 @@ SimpleNode::SimpleNode(SimpleNode const &node)
_cached_positions_valid(node._cached_positions_valid)
{
_document = NULL;
- _document = NULL;
_parent = _next = NULL;
_first_child = _last_child = NULL;
for ( Node *child = node._first_child ;
child != NULL ; child = child->next() )
{
- Node *child_copy=child->duplicate();
+ Node *child_copy=child->duplicate(NULL); // FIXME
child_copy->_setParent(this);
if (_last_child) {
@@ -591,12 +590,12 @@ void SimpleNode::mergeFrom(Node const *src, gchar const *key) {
if (rch) {
rch->mergeFrom(child, key);
} else {
- rch = child->duplicate();
+ rch = child->duplicate(_document);
appendChild(rch);
rch->release();
}
} else {
- Node *rch=child->duplicate();
+ Node *rch=child->duplicate(_document);
appendChild(rch);
rch->release();
}