summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-10-16 11:07:35 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-10-16 20:20:20 +0000
commitfb9b208ae9b22e8ced331f4d4e20392c9bc1357b (patch)
tree455599e9e03ca2c9f61dc0842cf5680e184f4fc6 /src/ui
parentExtensions: only check existence for interpreted scripts. (diff)
downloadinkscape-fb9b208ae9b22e8ced331f4d4e20392c9bc1357b.tar.gz
inkscape-fb9b208ae9b22e8ced331f4d4e20392c9bc1357b.zip
Inkscape::XML::Node::addChildAtPos
Diffstat (limited to 'src/ui')
-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);