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/element-node.h | |
| 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/element-node.h')
| -rw-r--r-- | src/xml/element-node.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xml/element-node.h b/src/xml/element-node.h index 1b79910a8..11bc8e03a 100644 --- a/src/xml/element-node.h +++ b/src/xml/element-node.h @@ -23,13 +23,15 @@ namespace XML { class ElementNode : public SimpleNode { public: - explicit ElementNode(int code) - : SimpleNode(code) {} + ElementNode(int code, Document *doc) + : SimpleNode(code, doc) {} + ElementNode(ElementNode const &other, Document *doc) + : SimpleNode(other, doc) {} Inkscape::XML::NodeType type() const { return Inkscape::XML::ELEMENT_NODE; } protected: - SimpleNode *_duplicate(Document* /*doc*/) const { return new ElementNode(*this); } + SimpleNode *_duplicate(Document* doc) const { return new ElementNode(*this, doc); } }; } |
