Skip to content

Commit 39398e4

Browse files
committed
fix as.raster bug
1 parent 4ce4e88 commit 39398e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/conversion.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ setMethod(
5757
n.levels <- length(x@levels)
5858
if (n.levels > 1) {
5959
for (i in 2:n.levels) {
60-
dim_img <- dim(x[[i]])
60+
dim_img <- stats::setNames(dim(x[[i]]), ax)
6161
if (min.pixel.size > max(rev(dim_img)[c("x", "y")])) {
6262
return(S4Arrays::as.array.Array(x[[i - 1]]))
6363
}

0 commit comments

Comments
 (0)