Code

plumb XML::Document parameter into duplication, courtesy of bryce
[inkscape.git] / src / xml / text-node.h
index bd6095f3b1658ea86f6c27f9a8f81b906efc2067..36f638ad90a29e7997dcb26a4e76d5b4f5acdab0 100644 (file)
@@ -32,7 +32,7 @@ struct TextNode : public SimpleNode {
     Inkscape::XML::NodeType type() const { return Inkscape::XML::TEXT_NODE; }
 
 protected:
-    SimpleNode *_duplicate() const { return new TextNode(*this); }
+    SimpleNode *_duplicate(Document* doc) const { return new TextNode(*this); }
 };
 
 }