#599 InternalError: too much recursion issue partially fixed
This commit is contained in:
@@ -828,7 +828,7 @@ export const setRectRadiusMethod = function (val) {
|
||||
const selected = selectedElements[0];
|
||||
if (!isNullish(selected) && selected.tagName === 'rect') {
|
||||
const r = selected.getAttribute('rx');
|
||||
if (r !== String(val)) {
|
||||
if (r !== String(val) && !isNullish(val)) {
|
||||
selected.setAttribute('rx', val);
|
||||
selected.setAttribute('ry', val);
|
||||
elemContext_.addCommandToHistory(new ChangeElementCommand(selected, { rx: r, ry: r }, 'Radius'));
|
||||
|
||||
@@ -385,8 +385,10 @@ export const setRotationAngle = function (val, preventUndo) {
|
||||
} else {
|
||||
elem.removeAttribute('transform');
|
||||
}
|
||||
svgCanvas.changeSelectedAttribute('transform', newTransform, selectedElements());
|
||||
svgCanvas.call('changed', selectedElements());
|
||||
if (oldTransform !== newTransform) {
|
||||
svgCanvas.changeSelectedAttribute('transform', newTransform, selectedElements());
|
||||
svgCanvas.call('changed', selectedElements());
|
||||
}
|
||||
}
|
||||
// const pointGripContainer = getElem('pathpointgrip_container');
|
||||
// if (elem.nodeName === 'path' && pointGripContainer) {
|
||||
|
||||
Reference in New Issue
Block a user