mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 02:37:15 +01:00
TAChart: Allow assignment of TFPCustomPen to Pen property of canvas drawer
git-svn-id: trunk@41854 -
This commit is contained in:
parent
8dda55133d
commit
698715cdc9
@ -308,7 +308,15 @@ begin
|
||||
Pen.Width := APen.Width;
|
||||
end
|
||||
else begin
|
||||
GetCanvas.Pen.Assign(APen);
|
||||
if APen is TPen then
|
||||
GetCanvas.Pen.Assign(APen)
|
||||
else
|
||||
with GetCanvas.Pen do begin
|
||||
Color := FPColorToChartColor(APen.FPColor);
|
||||
Style := APen.Style;
|
||||
Width := APen.Width;
|
||||
Mode := APen.Mode;
|
||||
end;
|
||||
if FMonochromeColor <> clTAColor then
|
||||
GetCanvas.Pen.Color := FMonochromeColor;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user