mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
If current shape and hover area is not valid then cancel shape
This commit is contained in:
parent
6b5be535af
commit
d48913093c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue