TAChart: Fix periodic usage of ChartStyles when drawing series pointers.

git-svn-id: trunk@60507 -
This commit is contained in:
wp 2019-02-25 21:15:34 +00:00
parent f2708bf395
commit b31aee71a7

View File

@ -1422,9 +1422,7 @@ begin
Pointer.SetOwner(nil); // avoid recursion
Pointer.Style := ps;
end;
brushAlreadySet := (Styles <> nil) and
(AStyleIndex < Styles.Styles.Count) and
Styles.Styles[AStyleIndex].UseBrush;
brushAlreadySet := (Styles <> nil) and Styles.StyleByIndex(AStyleIndex).UseBrush;
if brushAlreadySet then
Styles.Apply(ADrawer, AStyleIndex);
if UseDataColors then c := Source[i]^.Color else c := clTAColor;