* Patch from Pascal Riekenberg: do not draw shape if not necessary

git-svn-id: trunk@55905 -
This commit is contained in:
michael 2017-09-23 19:13:03 +00:00
parent 68bb0fb375
commit 0fd8c2b8f3

View File

@ -736,6 +736,10 @@ begin
SR:=GetElementRect(BL,SL);
{ Frame must be drawn before the shape as it could have a fill color. }
RenderFrame(AShape.Frame, SR, ABand.Frame.BackgroundColor);
{ exit if Shape will not be visible. }
if (TFPReportShape(AShape).Color = fpreport.clNone)
or (TFPReportShape(AShape).Color = AShape.Frame.BackgroundColor) then
exit;
Canvas.Pen.Color:=TFPReportShape(AShape).Color;
Canvas.Pen.Style:=psSolid;
Canvas.Pen.Width:=1;