Skip to content

Commit e26ce4e

Browse files
rbaveryjsbroks
authored andcommitted
Deletes annotations via eraser tool (#250)
1 parent 5fa6dcf commit e26ce4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/src/components/annotator/Annotation.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ export default {
437437
this.addUndo(action);
438438
},
439439
simplifyPath() {
440+
if (this.compoundPath != null && this.compoundPath.isEmpty()) {
441+
this.deleteAnnotation();
442+
return;
443+
}
440444
let simplify = this.simplify;
441445
442446
this.compoundPath.flatten(1);

0 commit comments

Comments
 (0)