Skip to content

Commit

Permalink
fix(calibration): Removed unused code that might have been optimized …
Browse files Browse the repository at this point in the history
…for production builds which in turn caused an exception to skip the popup prompt.
  • Loading branch information
jbocce committed Oct 19, 2023
1 parent 33f1259 commit 5b9d3bc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions extensions/cornerstone/src/tools/CalibrationLineTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5b9d3bc

Please sign in to comment.