From a41191158f6e082c8a32ad94539aa3f6c1679139 Mon Sep 17 00:00:00 2001 From: Magne Bratseth Date: Mon, 14 Mar 2016 13:16:30 +0100 Subject: [PATCH] Check for deleted defs after paste, fixes #82 --- editor/svgcanvas.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index a0e885ef..ee66e1cf 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -6995,6 +6995,8 @@ this.pasteElements = function(type, x, y) { pasted.push(copy); (current_group || getCurrentDrawing().getCurrentLayer()).appendChild(copy); batchCmd.addSubCommand(new svgedit.history.InsertElementCommand(copy)); + + restoreRefElems(copy); } selectOnly(pasted);