Issue 118: Fixed problem when selectorParentGroup hangs around after clearing the document
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@730 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -444,10 +444,14 @@ function BatchCommand(text) {
|
|||||||
var mgr = this;
|
var mgr = this;
|
||||||
|
|
||||||
this.initGroup = function() {
|
this.initGroup = function() {
|
||||||
mgr.selectorParentGroup = addSvgElementFromJson({
|
// remove old selector parent group if it existed
|
||||||
"element": "g",
|
if (mgr.selectorParentGroup && mgr.selectorParentGroup.parentNode) {
|
||||||
"attr": {"id": "selectorParentGroup"}
|
mgr.selectorParentGroup.parentNode.removeChild(mgr.selectorParentGroup);
|
||||||
});
|
}
|
||||||
|
// create parent selector group and add it to svgroot
|
||||||
|
mgr.selectorParentGroup = svgdoc.createElementNS(svgns, "g");
|
||||||
|
mgr.selectorParentGroup.setAttribute("id", "selectorParentGroup");
|
||||||
|
svgroot.appendChild(mgr.selectorParentGroup);
|
||||||
mgr.selectorMap = {};
|
mgr.selectorMap = {};
|
||||||
mgr.selectors = [];
|
mgr.selectors = [];
|
||||||
mgr.rubberBandBox = null;
|
mgr.rubberBandBox = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user