mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Merge 56092c75e7
into c1ad1d4a93
This commit is contained in:
commit
92e8c478a6
1 changed files with 6 additions and 2 deletions
|
@ -1769,12 +1769,16 @@ namespace Greenshot.Editor.Drawing
|
|||
int verticalCorrection = targetClipRectangle.Top % (int) _zoomFactor.Numerator;
|
||||
if (horizontalCorrection != 0)
|
||||
{
|
||||
targetClipRectangle = targetClipRectangle.ChangeX(-horizontalCorrection).ChangeWidth(horizontalCorrection);
|
||||
targetClipRectangle = targetClipRectangle
|
||||
.ChangeX(targetClipRectangle.X - horizontalCorrection)
|
||||
.ChangeWidth(targetClipRectangle.X + horizontalCorrection);
|
||||
}
|
||||
|
||||
if (verticalCorrection != 0)
|
||||
{
|
||||
targetClipRectangle = targetClipRectangle.ChangeY(-verticalCorrection).ChangeHeight(verticalCorrection);
|
||||
targetClipRectangle = targetClipRectangle
|
||||
.ChangeY(targetClipRectangle.Y - verticalCorrection)
|
||||
.ChangeHeight(targetClipRectangle.Y + verticalCorrection);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue