Skip to content

Commit

Permalink
If the source interval is empty, make the target interval empty (and …
Browse files Browse the repository at this point in the history
…do nothing else)
  • Loading branch information
tpietzsch committed Aug 16, 2022
1 parent a555151 commit 46e8890
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/imglib2/roi/Bounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -831,10 +831,11 @@ private void updateMinMaxIfNeeded()

private void updateMinMax( )
{
if( Intervals.isEmpty( source ) )
if ( Intervals.isEmpty( source ) )
{
Arrays.fill( max, Double.NEGATIVE_INFINITY );
Arrays.fill( min, Double.POSITIVE_INFINITY );
return;
}

final double[][] transformedCorners = createCorners();
Expand Down

0 comments on commit 46e8890

Please sign in to comment.