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

This commit is contained in:
wp_xyz 2024-03-04 10:07:34 +01:00
parent 3ef36b7bbb
commit 1ee8c6edb1

View File

@ -1314,6 +1314,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