diff --git a/extensions/cornerstone-dicom-sr/src/tools/DICOMSRDisplayTool.ts b/extensions/cornerstone-dicom-sr/src/tools/DICOMSRDisplayTool.ts index eaf3bf6eaf1..34c78c9fa2f 100644 --- a/extensions/cornerstone-dicom-sr/src/tools/DICOMSRDisplayTool.ts +++ b/extensions/cornerstone-dicom-sr/src/tools/DICOMSRDisplayTool.ts @@ -229,7 +229,11 @@ export default class DICOMSRDisplayTool extends AnnotationTool { // This gives us one point for arrow canvasCoordinates.push(viewport.worldToCanvas(point)); - // We get the other point for the arrow by using the image size + if (data[1] !== undefined) { + canvasCoordinates.push(viewport.worldToCanvas(data[1])); + } + else{ + // We get the other point for the arrow by using the image size const imagePixelModule = metaData.get('imagePixelModule', referencedImageId); let xOffset = 10; @@ -248,6 +252,9 @@ export default class DICOMSRDisplayTool extends AnnotationTool { ]); canvasCoordinates.push(viewport.worldToCanvas(arrowEnd)); + + } + const arrowUID = `${index}`;