Code

Fixing z-order problem on flowed text -> text. See LP#233830
authorozmikepittman <ozmikepittman@users.sourceforge.net>
Thu, 22 May 2008 16:31:22 +0000 (16:31 +0000)
committerozmikepittman <ozmikepittman@users.sourceforge.net>
Thu, 22 May 2008 16:31:22 +0000 (16:31 +0000)
src/text-chemistry.cpp

index 3a100a6fe7cf952e26bddf36c5010219effbbeca..0eeac8c4f7c3008a9471f2a3e1cd0651703d1d42 100644 (file)
@@ -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);