TAChart: Allow assignment of TFPCustomPen to Pen property of canvas drawer

git-svn-id: trunk@41854 -
This commit is contained in:
ask 2013-06-23 19:46:21 +00:00
parent 8dda55133d
commit 698715cdc9

View File

@ -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;