From c3fa557e60da4e9db495bf19f5b219fa0a222eea Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 29 Dec 2009 18:12:32 +0000 Subject: [PATCH] Yet more work on Issue 382: Only append the selector parent group when it needs to happen git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1123 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 058b82de..e83e1411 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -608,7 +608,8 @@ function BatchCommand(text) { // this keeps the selector groups as the last child in the document this.update = function() { - this.selectorParentGroup = svgroot.appendChild(this.selectorParentGroup); + if (svgroot.lastChild != this.selectorParentGroup) + this.selectorParentGroup = svgroot.appendChild(this.selectorParentGroup); }; this.getRubberBandBox = function() {