mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Fix image from file shape created with 0 size
This commit is contained in:
parent
b902e33593
commit
b9d1b150c6
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ public void SetImage(Image img, bool centerImage)
|
|||
location = Rectangle.Location;
|
||||
}
|
||||
|
||||
Rectangle = new Rectangle(location, size);
|
||||
StartPosition = location;
|
||||
EndPosition = new Point(location.X + size.Width - 1, location.Y + size.Height - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue