If current shape and hover area is not valid then cancel shape

This commit is contained in:
Jaex 2016-06-09 03:33:12 +03:00
parent 6b5be535af
commit d48913093c

View file

@ -1050,7 +1050,7 @@ private void EndRegionSelection()
if (shape != null)
{
if (!IsCurrentRectangleValid)
if (!shape.IsValidShape)
{
shape.Rectangle = Rectangle.Empty;
@ -1063,6 +1063,7 @@ private void EndRegionSelection()
else
{
DeleteCurrentShape();
shape = null;
}
}