Don't close region capture when double clicked and there is no region

This commit is contained in:
Jaex 2016-06-24 22:09:31 +03:00
parent 547910b67b
commit 8b8eacda66

View file

@ -858,8 +858,9 @@ private void form_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (IsCurrentShapeTypeRegion)
if (IsCurrentShapeTypeRegion && ValidRegions.Length > 0)
{
form.UpdateRegionPath();
form.Close(RegionResult.Region);
}
else if (CurrentShape != null && !IsCreating)