summaryrefslogtreecommitdiffstats
path: root/src/splivarot.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-29 23:22:37 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-29 23:22:37 +0000
commitd4c92eb19b82184433aee3f941fb97b2f4818027 (patch)
tree4f47ce8d1642d580da9e10d8dcd160950ab33bc4 /src/splivarot.cpp
parentImproved support for clipping on EMF/WMF import, see bug 1302857 (diff)
downloadinkscape-d4c92eb19b82184433aee3f941fb97b2f4818027.tar.gz
inkscape-d4c92eb19b82184433aee3f941fb97b2f4818027.zip
Fix bug #1290573 and #1310802
(bzr r13323)
Diffstat (limited to 'src/splivarot.cpp')
-rw-r--r--src/splivarot.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 40f3f174a..8bb2a7150 100644
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -1457,13 +1457,21 @@ sp_selected_path_outline(SPDesktop *desktop)
g_repr, xml_doc, doc );
}
}
+ //bug lp:1290573 : completely destroy the old object first
+ curve->unref();
+ selection->remove(item);
+ item->deleteObject(false);
selection->add(g_repr);
Inkscape::GC::release(g_repr);
-
- } else {
+ } else
+ {
+ //lp:1290573
+ curve->unref();
+ selection->remove(item);
+ item->deleteObject(false);
// add the new repr to the parent
parent->appendChild(repr);
@@ -1489,10 +1497,6 @@ sp_selected_path_outline(SPDesktop *desktop)
Inkscape::GC::release(repr);
- curve->unref();
- selection->remove(item);
- item->deleteObject(false);
-
}
if (title) {
g_free(title);