Merge pull request #90 from magnebra/missing_defs_after_paste

Check for deleted defs after paste, fixes #82
master
Philip Rogers 2016-03-14 23:55:54 -07:00
commit 9d7e60933b
1 changed files with 2 additions and 0 deletions

View File

@ -7000,6 +7000,8 @@ this.pasteElements = function(type, x, y) {
pasted.push(copy); pasted.push(copy);
(current_group || getCurrentDrawing().getCurrentLayer()).appendChild(copy); (current_group || getCurrentDrawing().getCurrentLayer()).appendChild(copy);
batchCmd.addSubCommand(new svgedit.history.InsertElementCommand(copy)); batchCmd.addSubCommand(new svgedit.history.InsertElementCommand(copy));
restoreRefElems(copy);
} }
selectOnly(pasted); selectOnly(pasted);