TAChart: Fix crash in TAGeometry.ProjToLine when line has coincident end points.

This commit is contained in:
wp_xyz 2023-04-16 13:05:10 +02:00
parent f63e480295
commit b32b922e6e

View File

@ -626,7 +626,7 @@ function ProjToLine(const P, A,B: TDoublePoint): TDoublePoint;
var
v, s: TDoublePoint;
begin
if P = A then
if (P = A) or (A = B) then
Result := A
else if P = B then
Result := B