Skip to content

Commit

Permalink
Add missing elvis to addVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
kephale committed Nov 25, 2020
1 parent b629ff4 commit 8d50ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sc/iview/SciView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ class SciView : SceneryBase, CalibratedRealInterval<CalibratedAxis> {
*/
@Suppress("UNCHECKED_CAST")
fun addVolume(image: Dataset, voxelDimensions: FloatArray): Node? {
return addVolume<RealType<*>>(image.imgPlus as RandomAccessibleInterval<RealType<*>>, image.name,
return addVolume<RealType<*>>(image.imgPlus as RandomAccessibleInterval<RealType<*>>, image.name ?: "Volume",
*voxelDimensions)
}

Expand Down

0 comments on commit 8d50ee9

Please sign in to comment.