Browse Source

Fixed anchor selection crash

Krzysztof Krysiński 3 months ago
parent
commit
b562f6ec19
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/PixiEditor/Views/Overlays/PathOverlay/VectorPathOverlay.cs

+ 4 - 1
src/PixiEditor/Views/Overlays/PathOverlay/VectorPathOverlay.cs

@@ -567,7 +567,10 @@ public class VectorPathOverlay : Overlay
         {
             Path = new VectorPath();
             Path.MoveTo((VecF)point);
-            SelectAnchor(anchorHandles[0]);
+            if (anchorHandles.Count > 0)
+            {
+                SelectAnchor(anchorHandles[0]);
+            }
         }
         else
         {