From e87d380eaeeb66bdc5da3bdb847871c29cb026bc Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Mon, 21 May 2018 23:39:38 +1000 Subject: [PATCH] Tuple deconstruct --- .../Processing/Transforms/Processors/ResizeProcessor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Processing/Transforms/Processors/ResizeProcessor.cs b/src/ImageSharp/Processing/Transforms/Processors/ResizeProcessor.cs index 27dc39ef1..8c1893f4f 100644 --- a/src/ImageSharp/Processing/Transforms/Processors/ResizeProcessor.cs +++ b/src/ImageSharp/Processing/Transforms/Processors/ResizeProcessor.cs @@ -56,12 +56,12 @@ namespace SixLabors.ImageSharp.Processing.Transforms.Processors Guard.MustBeGreaterThan(tempWidth, 0, nameof(tempWidth)); Guard.MustBeGreaterThan(tempHeight, 0, nameof(tempHeight)); - (Size size, Rectangle rectangle) locationBounds = ResizeHelper.CalculateTargetLocationAndBounds(sourceSize, options, tempWidth, tempHeight); + (Size size, Rectangle rectangle) = ResizeHelper.CalculateTargetLocationAndBounds(sourceSize, options, tempWidth, tempHeight); this.Sampler = options.Sampler; - this.Width = locationBounds.size.Width; - this.Height = locationBounds.size.Height; - this.ResizeRectangle = locationBounds.rectangle; + this.Width = size.Width; + this.Height = size.Height; + this.ResizeRectangle = rectangle; this.Compand = options.Compand; }