Skip to content

Commit 93d798d

Browse files
authored
fix(calibration): No calibration popup caused by perhaps an unused code optimization for production builds (#3736)
1 parent 33f1259 commit 93d798d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

extensions/cornerstone/src/tools/CalibrationLineTool.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,6 @@ export function onCompletedCalibrationLine(servicesManager, csToolsEvent) {
6666
calculateLength3(annotationData.handles.points[0], annotationData.handles.points[1]) * 100
6767
) / 100;
6868

69-
// calculate the currently applied pixel spacing on the viewport
70-
const calibratedPixelSpacing = metaData.get('calibratedPixelSpacing', imageId);
71-
const imagePlaneModule = metaData.get('imagePlaneModule', imageId);
72-
const currentRowPixelSpacing =
73-
calibratedPixelSpacing?.[0] || imagePlaneModule?.rowPixelSpacing || 1;
74-
const currentColumnPixelSpacing =
75-
calibratedPixelSpacing?.[1] || imagePlaneModule?.columnPixelSpacing || 1;
76-
7769
const adjustCalibration = newLength => {
7870
const spacingScale = newLength / length;
7971

0 commit comments

Comments
 (0)