diff options
Diffstat (limited to 'src/xml/simple-document.cpp')
| -rw-r--r-- | src/xml/simple-document.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xml/simple-document.cpp b/src/xml/simple-document.cpp index 30e74a455..d0aa31939 100644 --- a/src/xml/simple-document.cpp +++ b/src/xml/simple-document.cpp @@ -19,6 +19,7 @@ #include "xml/element-node.h" #include "xml/text-node.h" #include "xml/comment-node.h" +#include "xml/pi-node.h" namespace Inkscape { @@ -65,6 +66,10 @@ Node *SimpleDocument::createComment(char const *content) { return new CommentNode(Util::share_string(content)); } +Node *SimpleDocument::createPI(char const *target, char const *content) { + return new PINode(g_quark_from_string(target), Util::share_string(content)); +} + void SimpleDocument::notifyChildAdded(Node &parent, Node &child, Node *prev) |
