From f2f2d31a609d1f9a424c3225667d6a1d258ae081 Mon Sep 17 00:00:00 2001 From: James South Date: Wed, 13 Apr 2016 23:12:39 +1000 Subject: [PATCH] Stylecop Former-commit-id: 91a27c024108ecc4d4d908710b981e27bc3e750d Former-commit-id: 1d6f8af6ffbd20af54f347794a7a84c4bcffbfda Former-commit-id: 19e2ec5430c4510743d831e3af765622a9dcec55 --- src/ImageProcessorCore/Samplers/Resampler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageProcessorCore/Samplers/Resampler.cs b/src/ImageProcessorCore/Samplers/Resampler.cs index 368e031939..c2b1c49719 100644 --- a/src/ImageProcessorCore/Samplers/Resampler.cs +++ b/src/ImageProcessorCore/Samplers/Resampler.cs @@ -80,7 +80,7 @@ namespace ImageProcessorCore.Samplers result[i] = new Weights { Sum = 0, - Values = new Weight[(int)Math.Floor(2 * width + 1)] + Values = new Weight[(int)Math.Floor((2 * width) + 1)] }; for (double j = left; j <= right; j++) @@ -116,7 +116,7 @@ namespace ImageProcessorCore.Samplers result[i] = new Weights { Sum = 0, - Values = new Weight[(int)(radius * 2 + 1)] + Values = new Weight[(int)((radius * 2) + 1)] }; for (double j = left; j <= right; j++)