Code

plumb XML::Document parameter into duplication, courtesy of bryce
[inkscape.git] / src / seltrans.cpp
index b127e1657feb898983bc4dd745253e14f6d18f78..150a67c3012cddc68a1b2e7ed436f95a459d7dca 100644 (file)
@@ -461,7 +461,7 @@ void Inkscape::SelTrans::stamp()
             // remember parent
             Inkscape::XML::Node *parent = sp_repr_parent(original_repr);
 
-            Inkscape::XML::Node *copy_repr = original_repr->duplicate();
+            Inkscape::XML::Node *copy_repr = original_repr->duplicate(parent->document());
 
             // add the new repr to the parent
             parent->appendChild(copy_repr);