Fixed issues 282 and 283
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@863 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
dabc8c5e94
commit
6efc057a5a
|
@ -4334,8 +4334,9 @@ function BatchCommand(text) {
|
||||||
var clone = elem.cloneNode(true)
|
var clone = elem.cloneNode(true)
|
||||||
elem.parentNode.insertBefore(clone, elem);
|
elem.parentNode.insertBefore(clone, elem);
|
||||||
elem.parentNode.removeChild(elem);
|
elem.parentNode.removeChild(elem);
|
||||||
canvas.clearSelection();
|
selectorManager.releaseSelector(elem);
|
||||||
canvas.addToSelection([clone],true);
|
selectedElements[0] = clone;
|
||||||
|
selectorManager.requestSelector(clone).showGrips(true);
|
||||||
return clone;
|
return clone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4406,7 +4407,7 @@ function BatchCommand(text) {
|
||||||
}
|
}
|
||||||
// Timeout needed for Opera & Firefox
|
// Timeout needed for Opera & Firefox
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
selectorManager.requestSelector(elem).resize(selectedBBoxes[i]);
|
selectorManager.requestSelector(elem).resize(elem.getBBox());
|
||||||
},0);
|
},0);
|
||||||
// if this element was rotated, and we changed the position of this element
|
// if this element was rotated, and we changed the position of this element
|
||||||
// we need to update the rotational transform attribute
|
// we need to update the rotational transform attribute
|
||||||
|
@ -4422,7 +4423,9 @@ function BatchCommand(text) {
|
||||||
} // if oldValue != newValue
|
} // if oldValue != newValue
|
||||||
} // for each elem
|
} // for each elem
|
||||||
svgroot.unsuspendRedraw(handle);
|
svgroot.unsuspendRedraw(handle);
|
||||||
call("changed", elems);
|
|
||||||
|
// Calling changed here will cause the toolbar to be updated too many times
|
||||||
|
// call("changed", elems);
|
||||||
};
|
};
|
||||||
|
|
||||||
// This function returns a BatchCommand object which summarizes the
|
// This function returns a BatchCommand object which summarizes the
|
||||||
|
|
Loading…
Reference in New Issue