mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 16:55:58 +02:00
* Patch from Pascal Riekenberg: do not draw shape if not necessary
git-svn-id: trunk@55905 -
This commit is contained in:
parent
68bb0fb375
commit
0fd8c2b8f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user