Skip to content

Commit d77f557

Browse files
committed
Prevent invalid user-defined point to be created.
1 parent 4ddcf45 commit d77f557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solution/GraphicalDebugging/ExpressionLoader_UserDefined.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ public Loader Create(Loaders loaders, Debugger debugger, string name, string typ
666666
exprs,
667667
new Geometry.Traits(2, cs, unit));
668668

669-
return simpleGeometry != null
669+
return simpleGeometry != null && simpleGeometry.IsValid
670670
? new UserPoint(simpleGeometry)
671671
: null;
672672
}

0 commit comments

Comments
 (0)