From d63a9ac7604e3038c15e2c9e4bfe57f691ce4c91 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Wed, 23 Feb 2011 16:34:59 +0000 Subject: [PATCH] Fix Issue 787: Paths keeping old path edit nodes git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1998 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index c7782ce4..ddad2106 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -7921,6 +7921,9 @@ this.deleteSelectedElements = function() { // this will unselect the element and remove the selectedOutline selectorManager.releaseSelector(t); + // Remove the path if present. + svgedit.path.removePath_(t.id); + // Get the parent if it's a single-child anchor if(parent.tagName === 'a' && parent.childNodes.length === 1) { t = parent; @@ -7953,8 +7956,13 @@ this.cutSelectedElements = function() { var parent = selected.parentNode; var t = selected; + // this will unselect the element and remove the selectedOutline selectorManager.releaseSelector(t); + + // Remove the path if present. + svgedit.path.removePath_(t.id); + var nextSibling = t.nextSibling; var elem = parent.removeChild(t); selectedCopy.push(selected); //for the copy