Skip to content

Commit

Permalink
fix(window-level): prevent window level from being reset after modifi…
Browse files Browse the repository at this point in the history
…ed by user (#1793)

[OHI-1579]
  • Loading branch information
IbrahimCSAE authored Jan 31, 2025
1 parent c6d2ca6 commit f7a1c42
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1940,17 +1940,14 @@ class StackViewport extends Viewport {
imagePlaneModule.columnCosines,
columnCosines as Point3
);
const isDataTypeMatching =
dataType === image.voxelManager.getScalarData().constructor.name;

const result =
isXSpacingValid &&
isYSpacingValid &&
isXVoxelsMatching &&
isYVoxelsMatching &&
isRowCosinesMatching &&
isColumnCosinesMatching &&
isDataTypeMatching;
isColumnCosinesMatching;

return result;
}
Expand Down

0 comments on commit f7a1c42

Please sign in to comment.