diff options
| author | MenTaLguY <mental@rydia.net> | 2008-06-08 19:44:26 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2008-06-08 19:44:26 +0000 |
| commit | 3e9f14e201944380006bb851d40f5cacb860678d (patch) | |
| tree | 05e1d487b101aead4e985c4187209cdff5bb041f /src/xml/simple-node.cpp | |
| parent | Add option to either suppress path flash for items with LPE (e.g., spiro spli... (diff) | |
| download | inkscape-3e9f14e201944380006bb851d40f5cacb860678d.tar.gz inkscape-3e9f14e201944380006bb851d40f5cacb860678d.zip | |
plumb document references a little deeper in
(bzr r5861)
Diffstat (limited to 'src/xml/simple-node.cpp')
| -rw-r--r-- | src/xml/simple-node.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/xml/simple-node.cpp b/src/xml/simple-node.cpp index 084547a59..8ddc5b167 100644 --- a/src/xml/simple-node.cpp +++ b/src/xml/simple-node.cpp @@ -160,33 +160,32 @@ using Util::cons; using Util::rest; using Util::set_rest; -SimpleNode::SimpleNode(int code) +SimpleNode::SimpleNode(int code, Document *document) : Node(), _name(code), _attributes(), _child_count(0), _cached_positions_valid(false) { - this->_document = NULL; - this->_document = NULL; + this->_document = document; this->_parent = this->_next = NULL; this->_first_child = this->_last_child = NULL; _observers.add(_subtree_observers); } -SimpleNode::SimpleNode(SimpleNode const &node) +SimpleNode::SimpleNode(SimpleNode const &node, Document *document) : Node(), _cached_position(node._cached_position), _name(node._name), _attributes(), _content(node._content), _child_count(node._child_count), _cached_positions_valid(node._cached_positions_valid) { - _document = NULL; + _document = document; _parent = _next = NULL; _first_child = _last_child = NULL; for ( Node *child = node._first_child ; child != NULL ; child = child->next() ) { - Node *child_copy=child->duplicate(NULL); // FIXME + Node *child_copy=child->duplicate(document); child_copy->_setParent(this); if (_last_child) { |
