mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 17:20:56 +02:00
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:
parent
3ef36b7bbb
commit
1ee8c6edb1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user