mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
Fix off-by-one bug
(cherry picked from commit 5784d6090c0a8f91643c164b78f35ccfd7484a55)
This commit is contained in:
parent
b37815c5d9
commit
92cbdfb794
1 changed files with 4 additions and 4 deletions
|
@ -1009,16 +1009,16 @@ namespace Greenshot.Editor.Drawing
|
||||||
switch (direction)
|
switch (direction)
|
||||||
{
|
{
|
||||||
case Direction.LEFT:
|
case Direction.LEFT:
|
||||||
expansion.Left = elementSize.Width;
|
expansion.Left = elementSize.Width - 1;
|
||||||
break;
|
break;
|
||||||
case Direction.RIGHT:
|
case Direction.RIGHT:
|
||||||
expansion.Right = elementSize.Width;
|
expansion.Right = elementSize.Width - 1;
|
||||||
break;
|
break;
|
||||||
case Direction.TOP:
|
case Direction.TOP:
|
||||||
expansion.Top = elementSize.Height;
|
expansion.Top = elementSize.Height - 1;
|
||||||
break;
|
break;
|
||||||
case Direction.BOTTOM:
|
case Direction.BOTTOM:
|
||||||
expansion.Bottom = elementSize.Height;
|
expansion.Bottom = elementSize.Height - 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue