From 5b9d3bc8252d05a8e862f8f668ac018ff9c72661 Mon Sep 17 00:00:00 2001 From: Joe Boccanfuso Date: Thu, 19 Oct 2023 09:02:45 -0400 Subject: [PATCH] fix(calibration): Removed unused code that might have been optimized for production builds which in turn caused an exception to skip the popup prompt. --- extensions/cornerstone/src/tools/CalibrationLineTool.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/extensions/cornerstone/src/tools/CalibrationLineTool.ts b/extensions/cornerstone/src/tools/CalibrationLineTool.ts index 3b4a9bede0b..c9e008fc61b 100644 --- a/extensions/cornerstone/src/tools/CalibrationLineTool.ts +++ b/extensions/cornerstone/src/tools/CalibrationLineTool.ts @@ -66,14 +66,6 @@ export function onCompletedCalibrationLine(servicesManager, csToolsEvent) { calculateLength3(annotationData.handles.points[0], annotationData.handles.points[1]) * 100 ) / 100; - // calculate the currently applied pixel spacing on the viewport - const calibratedPixelSpacing = metaData.get('calibratedPixelSpacing', imageId); - const imagePlaneModule = metaData.get('imagePlaneModule', imageId); - const currentRowPixelSpacing = - calibratedPixelSpacing?.[0] || imagePlaneModule?.rowPixelSpacing || 1; - const currentColumnPixelSpacing = - calibratedPixelSpacing?.[1] || imagePlaneModule?.columnPixelSpacing || 1; - const adjustCalibration = newLength => { const spacingScale = newLength / length;