mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
Remove minus 1 for expansion sizes
This commit is contained in:
parent
d1a840ca33
commit
56c49f5926
1 changed files with 4 additions and 4 deletions
|
@ -969,16 +969,16 @@ namespace Greenshot.Editor.Drawing
|
|||
switch (direction)
|
||||
{
|
||||
case Direction.LEFT:
|
||||
expansion.Left = elementSize.Width - 1;
|
||||
expansion.Left = elementSize.Width;
|
||||
break;
|
||||
case Direction.RIGHT:
|
||||
expansion.Right = elementSize.Width - 1;
|
||||
expansion.Right = elementSize.Width;
|
||||
break;
|
||||
case Direction.TOP:
|
||||
expansion.Top = elementSize.Height - 1;
|
||||
expansion.Top = elementSize.Height;
|
||||
break;
|
||||
case Direction.BOTTOM:
|
||||
expansion.Bottom = elementSize.Height - 1;
|
||||
expansion.Bottom = elementSize.Height;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue