TAChart: Fix occasional crash when Styles are used for series but style list is empty.

This commit is contained in:
wp_xyz 2024-02-08 13:05:03 +01:00
parent e5ba0c58f1
commit 8801ff314b

View File

@ -1565,7 +1565,7 @@ begin
then begin
if Styles <> nil then begin
style := Styles.StyleByIndex(si);
if style.UseFont then
if (style <> nil) and style.UseFont then
Marks.LabelFont.Assign(style.Font)
else
Marks.LabelFont.Assign(lfont);