|
|
@ -262,7 +262,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms |
|
|
// Ensure offsets are normalized for cropping and padding.
|
|
|
// Ensure offsets are normalized for cropping and padding.
|
|
|
ResizeKernel kernel = this.verticalKernelMap.GetKernel(y - startY); |
|
|
ResizeKernel kernel = this.verticalKernelMap.GetKernel(y - startY); |
|
|
|
|
|
|
|
|
if (kernel.StartIndex + kernel.Length > resizeWindow.Bottom) |
|
|
while (kernel.StartIndex + kernel.Length > resizeWindow.Bottom) |
|
|
{ |
|
|
{ |
|
|
resizeWindow.Slide(); |
|
|
resizeWindow.Slide(); |
|
|
} |
|
|
} |
|
|
|