mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-20 05:22:34 +01:00
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:
parent
1b4af8a4d7
commit
1b1ecefa7b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user