TAChart/RadialSeries: Fix crash due to empty AngleCache (see https://forum.lazarus.freepascal.org/index.php/topic,66470.msg509501.html)

(cherry picked from commit 1ee8c6edb1)
This commit is contained in:
wp_xyz 2024-03-04 10:07:34 +01:00 committed by Maxim Ganetsky
parent 1b4af8a4d7
commit 1b1ecefa7b

View File

@ -1312,6 +1312,7 @@ var
j: Integer;
begin
if IsEmpty or (not Active) then exit;
PrepareAngleCache;
originPt := ParentChart.GraphToImage(DoublePoint(OriginX, OriginY));
fill := FFilled and (FBrush.Style <> bsClear);
SetLength(pts, Count + 1); // +1 for origin