From 180735017650fdd922b93203a1ae12c81f6be377 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Mon, 24 Jan 2022 00:41:42 +1100 Subject: [PATCH] Fix switched assignments --- .../Transforms/Linear/AffineTransformProcessor{TPixel}.cs | 4 ++-- .../Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs index beb14ad019..1cd2514659 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs @@ -201,9 +201,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms float yRadius = this.yRadius; float xRadius = this.xRadius; int minY = this.bounds.Y; - int maxY = this.bounds.Right - 1; + int maxY = this.bounds.Bottom - 1; int minX = this.bounds.X; - int maxX = this.bounds.Bottom - 1; + int maxX = this.bounds.Right - 1; for (int y = rows.Min; y < rows.Max; y++) { diff --git a/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs index 00bb074001..fc2cb0c851 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs @@ -200,9 +200,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms float yRadius = this.yRadius; float xRadius = this.xRadius; int minY = this.bounds.Y; - int maxY = this.bounds.Right - 1; + int maxY = this.bounds.Bottom - 1; int minX = this.bounds.X; - int maxX = this.bounds.Bottom - 1; + int maxX = this.bounds.Right - 1; for (int y = rows.Min; y < rows.Max; y++) {