From bd03e18ddccd1daaf145a95156fe8b6dc47e7f2a Mon Sep 17 00:00:00 2001 From: Christian Schulz <32000301+Christian-Schulz@users.noreply.github.com> Date: Sat, 21 May 2022 22:57:20 +0200 Subject: [PATCH] Bugfix crop selection scaling #404 (#407) Disable scaling for horizontal and vertical crop modes. --- src/Greenshot.Editor/Drawing/CropContainer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Greenshot.Editor/Drawing/CropContainer.cs b/src/Greenshot.Editor/Drawing/CropContainer.cs index d450e9dd2..c513b171f 100644 --- a/src/Greenshot.Editor/Drawing/CropContainer.cs +++ b/src/Greenshot.Editor/Drawing/CropContainer.cs @@ -247,10 +247,11 @@ namespace Greenshot.Editor.Drawing _boundsAfterResize = new NativeRectFloat( _boundsBeforeResize.Left, _boundsBeforeResize.Top, x - _boundsAfterResize.Left, y - _boundsAfterResize.Top); + + _boundsAfterResize = ScaleHelper.Scale(_boundsAfterResize, Positions.TopLeft, x, y, GetAngleRoundProcessor()); break; } } - _boundsAfterResize = ScaleHelper.Scale(_boundsBeforeResize, Positions.TopLeft, x, y, GetAngleRoundProcessor()); // apply scaled bounds to this DrawableContainer ApplyBounds(_boundsAfterResize);