Consider having only 1 control point as being deleted

This commit is contained in:
smoogipoo 2019-12-09 22:35:19 +09:00
parent 47f3c4a596
commit bd2b0af269
1 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ private bool deleteSelected()
slider.Path.ControlPoints.Remove(c);
}
// If there are 0 remaining control points, treat the slider as being deleted
if (slider.Path.ControlPoints.Count == 0)
// If there are 0 or 1 remaining control points, the slider is in a degenerate (single point) form and should be deleted
if (slider.Path.ControlPoints.Count <= 1)
{
placementHandler?.Delete(slider);
return true;