Skip to content

Commit be18dbd

Browse files
committed
keep ScaleKeepAspect bounds unaffected
1 parent 3abde17 commit be18dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projective/affine.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ end
5252

5353
function projectionbounds(tfm::ScaleKeepAspect{N}, P, bounds::Bounds{N}; randstate = nothing) where N
5454
origsz = length.(bounds.rs)
55-
ratio = maximum((tfm.minlengths .+ 1) ./ origsz)
56-
sz = floor.(Int, ratio .* origsz)
55+
ratio = maximum((tfm.minlengths) ./ origsz)
56+
sz = floor.(Int,ratio .* origsz)
5757
bounds_ = transformbounds(bounds, P)
5858
bs_ = offsetcropbounds(sz, bounds_, ntuple(_ -> 1., N))
5959
return bs_

0 commit comments

Comments
 (0)