summaryrefslogtreecommitdiffstats
path: root/src/text-chemistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/text-chemistry.cpp')
-rw-r--r--src/text-chemistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text-chemistry.cpp b/src/text-chemistry.cpp
index 3a100a6fe..0eeac8c4f 100644
--- a/src/text-chemistry.cpp
+++ b/src/text-chemistry.cpp
@@ -508,7 +508,7 @@ flowtext_to_text()
did = true;
Inkscape::XML::Node *parent = SP_OBJECT_REPR(item)->parent();
- parent->appendChild(repr);
+ parent->addChild(repr, SP_OBJECT_REPR(item));
SPItem *new_item = (SPItem *) sp_desktop_document(desktop)->getObjectByRepr(repr);
sp_item_write_transform(new_item, repr, item->transform);