mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 04:07:57 +02:00
TAChart: Fix occasional crash when Styles are used for series but style list is empty.
This commit is contained in:
parent
e5ba0c58f1
commit
8801ff314b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user