Skip to content

Commit

Permalink
fix: window level range
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Zhao committed Jan 25, 2024
1 parent c405ce8 commit 98f9390
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/tools/src/tools/WindowLevelTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ class WindowLevelTool extends BaseTool {
});
}

// If the range is not valid. Do nothing
if (newRange.lower >= newRange.upper) {
return;
}

viewport.setProperties({
voiRange: newRange,
});
Expand Down

0 comments on commit 98f9390

Please sign in to comment.