We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd11dfd commit b2f1c11Copy full SHA for b2f1c11
src/projective/crop.jl
@@ -80,7 +80,7 @@ function cropindices(
80
ranges = boundsranges(bounds_)
81
82
sz = length.(ranges)
83
- pad = cropped.crop.by .- (length.(ranges) .% cropped.crop.by) .- (1, 1)
+ pad = (cropped.crop.by .- (sz .% cropped.crop.by)) .% cropped.crop.by
84
85
indices = UnitRange.(getindex.(ranges, 1), sz .+ pad)
86
return indices
0 commit comments