summaryrefslogtreecommitdiffstats
path: root/src/xml/text-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/text-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/text-node.h')
-rw-r--r--src/xml/text-node.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xml/text-node.h b/src/xml/text-node.h
index adcacb604..8fb797276 100644
--- a/src/xml/text-node.h
+++ b/src/xml/text-node.h
@@ -23,16 +23,18 @@ namespace Inkscape {
namespace XML {
struct TextNode : public SimpleNode {
- TextNode(Util::ptr_shared<char> content)
- : SimpleNode(g_quark_from_static_string("string"))
+ TextNode(Util::ptr_shared<char> content, Document *doc)
+ : SimpleNode(g_quark_from_static_string("string"), doc)
{
setContent(content);
}
+ TextNode(TextNode const &other, Document *doc)
+ : SimpleNode(other, doc) {}
Inkscape::XML::NodeType type() const { return Inkscape::XML::TEXT_NODE; }
protected:
- SimpleNode *_duplicate(Document* /*doc*/) const { return new TextNode(*this); }
+ SimpleNode *_duplicate(Document* doc) const { return new TextNode(*this, doc); }
};
}