diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index b127e1657feb898983bc4dd745253e14f6d18f78..150a67c3012cddc68a1b2e7ed436f95a459d7dca 100644 (file)
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
// 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);