Skip to content

Commit b2f1c11

Browse files
committed
Fix PadDivisible indices
1 parent fd11dfd commit b2f1c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projective/crop.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function cropindices(
8080
ranges = boundsranges(bounds_)
8181

8282
sz = length.(ranges)
83-
pad = cropped.crop.by .- (length.(ranges) .% cropped.crop.by) .- (1, 1)
83+
pad = (cropped.crop.by .- (sz .% cropped.crop.by)) .% cropped.crop.by
8484

8585
indices = UnitRange.(getindex.(ranges, 1), sz .+ pad)
8686
return indices

0 commit comments

Comments
 (0)