mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 01:47:43 +02:00
TAChart: Allow assignment of TFPCustomBrush to Brush property of canvas drawer
git-svn-id: trunk@41890 -
This commit is contained in:
parent
6cf88ec6b4
commit
7b7579dcd3
@ -265,7 +265,14 @@ end;
|
||||
|
||||
procedure TCanvasDrawer.SetBrush(ABrush: TFPCustomBrush);
|
||||
begin
|
||||
GetCanvas.Brush.Assign(ABrush);
|
||||
if ABrush is TBrush then
|
||||
GetCanvas.Brush.Assign(ABrush)
|
||||
else
|
||||
with GetCanvas.Brush do begin
|
||||
FPColor := ABrush.FPColor;
|
||||
Pattern := ABrush.Pattern;
|
||||
Style := ABrush.Style;
|
||||
end;
|
||||
if FXor then
|
||||
GetCanvas.Brush.Style := bsClear
|
||||
else if FMonochromeColor <> clTAColor then
|
||||
|
Loading…
Reference in New Issue
Block a user