Fix image from file shape created with 0 size

This commit is contained in:
L1Q 2017-11-07 19:08:52 +02:00
parent b902e33593
commit b9d1b150c6

View file

@ -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);
}
}