diff --git a/components/tachart/tadrawersvg.pas b/components/tachart/tadrawersvg.pas index d0c9112137..431ced3ae6 100644 --- a/components/tachart/tadrawersvg.pas +++ b/components/tachart/tadrawersvg.pas @@ -384,7 +384,10 @@ end; procedure TSVGDrawer.SetBrush(ABrush: TFPCustomBrush); begin - FBrushColor := FPColorOrMono(ABrush.FPColor); + if ABrush is TBrush then + FBrushColor := FChartColorToFPColorFunc(ColorOrMono(TBrush(ABrush).Color)) + else + FBrushColor := FPColorOrMono(ABrush.FPColor); FBrushStyle := ABrush.Style; end;