From fb35812a12b030e67223cdd003a462e22ed5d465 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Sat, 11 Feb 2017 10:50:20 +0100 Subject: Fix a critical warning on convert to paths https://bugs.launchpad.net/inkscape/+bug/1662812/comments/7 (bzr r15506) --- src/splivarot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/splivarot.cpp') diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 485b4547e..22efe38ed 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -1617,9 +1617,9 @@ sp_item_path_outline(SPItem *item, SPDesktop *desktop, bool legacy) sp_repr_css_change(out, r_style, "style"); sp_repr_css_attr_unref(r_style); if (unique) { - out->setPosition(pos > 0 ? pos : 0); parent->appendChild(out); parent->removeChild(g_repr); + out->setPosition(pos > 0 ? pos : 0); } out->setAttribute("transform", item->getRepr()->attribute("transform")); //bug lp:1290573 : completely destroy the old object first -- cgit v1.2.3