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
master
Alexis Deveria 2010-09-23 20:04:44 +00:00
parent 7065218adc
commit 8f56429b1a
1 changed files with 1 additions and 5 deletions

View File

@ -5373,11 +5373,6 @@ var getMouseTarget = this.getMouseTarget = function(evt) {
return; return;
} }
// Reset context
if(current_group) {
leaveContext();
}
if(parent.tagName !== 'g' || parent === current_layer || mouse_target === selectorManager.selectorParentGroup) { if(parent.tagName !== 'g' || parent === current_layer || mouse_target === selectorManager.selectorParentGroup) {
// Escape from in-group edit // Escape from in-group edit
return; return;
@ -9045,6 +9040,7 @@ var leaveContext = this.leaveContext = function() {
// Function: setContext // Function: setContext
// Set the current context (for in-group editing) // Set the current context (for in-group editing)
var setContext = this.setContext = function(elem) { var setContext = this.setContext = function(elem) {
leaveContext();
if(typeof elem === 'string') { if(typeof elem === 'string') {
elem = getElem(elem); elem = getElem(elem);
} }