summaryrefslogtreecommitdiffstats
path: root/src/xml/element-node.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2008-06-08 19:44:26 +0000
committermental <mental@users.sourceforge.net>2008-06-08 19:44:26 +0000
commit3e9f14e201944380006bb851d40f5cacb860678d (patch)
tree05e1d487b101aead4e985c4187209cdff5bb041f /src/xml/element-node.h
parentAdd option to either suppress path flash for items with LPE (e.g., spiro spli... (diff)
downloadinkscape-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.h8
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); }
};
}