From 8f56429b1a9b782f347b580ec6ca5c085215e718 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 23 Sep 2010 20:04:44 +0000 Subject: [PATCH] Fixed bug on changing group level in last revision git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1748 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index a244f95a..c0c8b1a7 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -5373,11 +5373,6 @@ var getMouseTarget = this.getMouseTarget = function(evt) { return; } - // Reset context - if(current_group) { - leaveContext(); - } - if(parent.tagName !== 'g' || parent === current_layer || mouse_target === selectorManager.selectorParentGroup) { // Escape from in-group edit return; @@ -9045,6 +9040,7 @@ var leaveContext = this.leaveContext = function() { // Function: setContext // Set the current context (for in-group editing) var setContext = this.setContext = function(elem) { + leaveContext(); if(typeof elem === 'string') { elem = getElem(elem); }