summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/tweak-tool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tools/tweak-tool.cpp')
-rw-r--r--src/ui/tools/tweak-tool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/tools/tweak-tool.cpp b/src/ui/tools/tweak-tool.cpp
index 4e64ed4de..0c5e83b55 100644
--- a/src/ui/tools/tweak-tool.cpp
+++ b/src/ui/tools/tweak-tool.cpp
@@ -601,9 +601,8 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, Geom::P
// restore id
newrepr->setAttribute("id", id);
// add the new repr to the parent
- parent->appendChild(newrepr);
// move to the saved position
- newrepr->setPosition(pos > 0 ? pos : 0);
+ parent->addChildAtPos(newrepr, pos);
if (is_selected)
selection->add(newrepr);