Code

handle PI nodes
authormental <mental@users.sourceforge.net>
Wed, 11 Jun 2008 15:55:04 +0000 (15:55 +0000)
committermental <mental@users.sourceforge.net>
Wed, 11 Jun 2008 15:55:04 +0000 (15:55 +0000)
src/text-editing.cpp

index cab71e94a601f14bd53176c41ee29af8a09cf624..4b115f3747cb65e9bf8ced25628d53d8409be2e7 100644 (file)
@@ -270,6 +270,9 @@ static Inkscape::XML::Node* duplicate_node_without_children(Inkscape::XML::Docum
         case Inkscape::XML::COMMENT_NODE:
             return xml_doc->createComment(old_node->content());
 
+        case Inkscape::XML::PI_NODE:
+            return xml_doc->createPI(old_node->name(), old_node->content());
+
         case Inkscape::XML::DOCUMENT_NODE:
             return NULL;   // this had better never happen
     }