From f7b62eec363fb60ff6b30d02e7d4bf3c94a4f53c Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Sun, 17 Mar 2019 13:35:12 -0400 Subject: [PATCH] Fixed DEXTR apply annotation to wrong layer --- client/src/components/annotator/tools/DEXTRTool.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/annotator/tools/DEXTRTool.vue b/client/src/components/annotator/tools/DEXTRTool.vue index 76d0b34a..7b69021e 100644 --- a/client/src/components/annotator/tools/DEXTRTool.vue +++ b/client/src/components/annotator/tools/DEXTRTool.vue @@ -46,6 +46,7 @@ export default { let points = this.points; this.points = []; + let currentAnnotation = this.$parent.currentAnnotation; let pointsList = []; let width = this.$parent.image.raster.width / 2; let height = this.$parent.image.raster.height / 2; @@ -81,7 +82,7 @@ export default { compoundPath.addChild(path); } - this.$parent.uniteCurrentAnnotation(compoundPath); + currentAnnotation.unite(compoundPath); }) .finally(() => points.forEach(point => point.remove())); }