This commit is contained in:
艾竹
2023-06-27 22:57:08 +08:00
parent 6995fe1476
commit d2e00c6149
8 changed files with 70 additions and 73 deletions

View File

@@ -158,7 +158,7 @@ namespace AIStudio.Wpf.DiagramDesigner
if (Math.Sqrt(Math.Pow(FirstPoint.Value.X - currentPoint.X, 2) + Math.Pow(FirstPoint.Value.Y - currentPoint.Y, 2)) > 5)
{
FirstPoint = null;
if (Info?.Children?.Count > 0)
if (Info?.Children.Count > 0)
{
var borders = VisualHelper.FindVisualChildren<BlockGrid>(this);
foreach (var border in borders)