diff --git a/src/svgcanvas/path-actions.js b/src/svgcanvas/path-actions.js index 7087e685..daaa8a8a 100644 --- a/src/svgcanvas/path-actions.js +++ b/src/svgcanvas/path-actions.js @@ -443,7 +443,7 @@ export const pathActionsMethod = (function () { const newD = newpath.getAttribute('d'); const origD = path.elem.getAttribute('d'); path.elem.setAttribute('d', origD + newD); - newpath.parentNode.removeChild(); + newpath.parentNode.removeChild(newpath); if (path.matrix) { pathActionsContext_.recalcRotatedPath(); }