mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 04:40:03 +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);
|
procedure TSVGDrawer.SetBrush(ABrush: TFPCustomBrush);
|
||||||
begin
|
begin
|
||||||
FBrushColor := FPColorOrMono(ABrush.FPColor);
|
if ABrush is TBrush then
|
||||||
|
FBrushColor := FChartColorToFPColorFunc(ColorOrMono(TBrush(ABrush).Color))
|
||||||
|
else
|
||||||
|
FBrushColor := FPColorOrMono(ABrush.FPColor);
|
||||||
FBrushStyle := ABrush.Style;
|
FBrushStyle := ABrush.Style;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user