Fix resizing some shapes with keyboard

This commit is contained in:
L1Q 2017-11-07 19:05:27 +02:00
parent 5b92108c33
commit eaac08413c

View file

@ -125,11 +125,11 @@ public virtual void Resize(int x, int y, bool fromBottomRight)
{
if (fromBottomRight)
{
Rectangle = Rectangle.SizeOffset(x, y);
EndPosition = EndPosition.Add(x, y);
}
else
{
Rectangle = Rectangle.LocationOffset(x, y).SizeOffset(-x, -y);
StartPosition = StartPosition.Add(x, y);
}
}