mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-22 23:29:27 +01:00
TAChart: Fix crash in TAGeometry.ProjToLine when line has coincident end points.
This commit is contained in:
parent
f63e480295
commit
b32b922e6e
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user