Skip to content

Commit

Permalink
bugfix: copyslice of stacks with one slice didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Apr 23, 2020
1 parent 5e08a31 commit 45e2ba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/haesleinhuepf/clij2/plugins/CopySlice.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public static boolean copySlice(CLIJ2 clij2, ClearCLImageInterface src, ClearCLI
} else if (src.getDimension() == 3 && dst.getDimension() == 2) {
clij2.execute(CopySlice.class, "copy_slice_from_3d_x.cl", "copy_slice_from_3d", dst.getDimensions(), dst.getDimensions(), parameters);
} else {
throw new IllegalArgumentException("Images have wrong dimension. Must be 3D->2D or 2D->3D.");
System.out.println("Warning: Images have wrong dimension. Must be 3D->2D or 2D->3D.");
clij2.copy(src, dst);
}
return true;
}
Expand Down

0 comments on commit 45e2ba6

Please # to comment.