TAChart: Revert r61263 #aa69a266b0 for TADiagramDrawing.pas.

git-svn-id: trunk@61269 -
This commit is contained in:
wp 2019-05-22 09:57:30 +00:00
parent 95ca9460ab
commit b9b93e077d

View File

@ -81,7 +81,7 @@ begin
id.SetBrushColor($FFFFFF);
for d in ASelf.Decorators do
if d is IDiaDrawerDecorator then
IDiaDrawerDecorator(d).Apply(id);
(d as IDiaDrawerDecorator).Apply(id);
with ASelf do
id.Polygon([
ToImage(FTopLeft), ToImage(FTopRight),
@ -103,7 +103,7 @@ begin
ADrawer.SetBrushColor($FFFFFF);
for d in AEndPoint.Decorators do
if d is IDiaDrawerDecorator then
IDiaDrawerDecorator(d).Apply(ADrawer);
(d as IDiaDrawerDecorator).Apply(ADrawer);
da := ArcTan2(AEndPoint.Width.Value, AEndPoint.Length.Value);
diag := -Round(Sqrt(Sqr(AEndPoint.Length.Value) + Sqr(AEndPoint.Width.Value)));
@ -126,7 +126,7 @@ begin
id.PrepareSimplePen($000000);
for d in ASelf.Decorators do
if d is IDiaDrawerDecorator then
IDiaDrawerDecorator(d).Apply(id);
(d as IDiaDrawerDecorator).Apply(id);
startPos := ToImage(ASelf.Start.Connector.ActualPos);
endPos := ToImage(ASelf.Finish.Connector.ActualPos);
case ASelf.Routing of