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/text-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/text-node.h')
| -rw-r--r-- | src/xml/text-node.h | 8 |
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); } }; } |
