mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 09:20:10 +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);
|
procedure TCanvasDrawer.SetBrush(ABrush: TFPCustomBrush);
|
||||||
begin
|
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
|
if FXor then
|
||||||
GetCanvas.Brush.Style := bsClear
|
GetCanvas.Brush.Style := bsClear
|
||||||
else if FMonochromeColor <> clTAColor then
|
else if FMonochromeColor <> clTAColor then
|
||||||
|
Loading…
Reference in New Issue
Block a user