mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 16:10:16 +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;
|
j: Integer;
|
||||||
begin
|
begin
|
||||||
if IsEmpty or (not Active) then exit;
|
if IsEmpty or (not Active) then exit;
|
||||||
|
PrepareAngleCache;
|
||||||
originPt := ParentChart.GraphToImage(DoublePoint(OriginX, OriginY));
|
originPt := ParentChart.GraphToImage(DoublePoint(OriginX, OriginY));
|
||||||
fill := FFilled and (FBrush.Style <> bsClear);
|
fill := FFilled and (FBrush.Style <> bsClear);
|
||||||
SetLength(pts, Count + 1); // +1 for origin
|
SetLength(pts, Count + 1); // +1 for origin
|
||||||
|
Loading…
Reference in New Issue
Block a user