Skip to content

Commit d6bd8bb

Browse files
authored
Merge pull request #464 from DigitalSlideArchive/annotation-boolean
Annotation boolean operations could fail.
2 parents a792647 + 8b02642 commit d6bd8bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

histomicsui/web_client/panels/DrawWidget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ var DrawWidget = Panel.extend({
377377
},
378378

379379
/**
380-
* Apply a boolean operation to the existign polygons.
380+
* Apply a boolean operation to the existing polygons.
381381
*
382382
* @param {geo.annotation[]} annotations The list of specified geojs
383383
* annotations.
@@ -409,7 +409,7 @@ var DrawWidget = Panel.extend({
409409
if (element.properties.element && element.properties.element.group !== this._style.get('group')) {
410410
return;
411411
}
412-
element.properties.annotationId = element.properties.annotation;
412+
element.properties.annotationId = element.properties.annotation.id;
413413
geojson.features.push(element);
414414
oldids[element.id] = true;
415415
}));

0 commit comments

Comments
 (0)