mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:09:21 +02:00
TAChart: Fix incorrect brush color of SVGDrawer (issue #0027633)
git-svn-id: trunk@48179 -
This commit is contained in:
parent
6c4845ba6e
commit
3c41fbda03
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user