mirror of
https://github.com/greenshot/greenshot
synced 2025-07-06 13:02:18 -07:00
Disable scaling for horizontal and vertical crop modes.
This commit is contained in:
parent
94591e5b14
commit
bd03e18ddc
1 changed files with 2 additions and 1 deletions
|
@ -247,10 +247,11 @@ namespace Greenshot.Editor.Drawing
|
||||||
_boundsAfterResize = new NativeRectFloat(
|
_boundsAfterResize = new NativeRectFloat(
|
||||||
_boundsBeforeResize.Left, _boundsBeforeResize.Top,
|
_boundsBeforeResize.Left, _boundsBeforeResize.Top,
|
||||||
x - _boundsAfterResize.Left, y - _boundsAfterResize.Top);
|
x - _boundsAfterResize.Left, y - _boundsAfterResize.Top);
|
||||||
|
|
||||||
|
_boundsAfterResize = ScaleHelper.Scale(_boundsAfterResize, Positions.TopLeft, x, y, GetAngleRoundProcessor());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_boundsAfterResize = ScaleHelper.Scale(_boundsBeforeResize, Positions.TopLeft, x, y, GetAngleRoundProcessor());
|
|
||||||
|
|
||||||
// apply scaled bounds to this DrawableContainer
|
// apply scaled bounds to this DrawableContainer
|
||||||
ApplyBounds(_boundsAfterResize);
|
ApplyBounds(_boundsAfterResize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue