Lazreport, Patch form Aleksey Lagunov:

1. Fix AV in BeforePrintScript
 2. Fix set Visible:=false in BeforePrintScript for LazReport Dialog forms.

git-svn-id: trunk@40833 -
This commit is contained in:
jesus 2013-04-18 03:34:31 +00:00
parent 88212d1ab2
commit 3105302469

View File

@ -11348,7 +11348,8 @@ begin
{$IFDEF DebugLR}
DebugLn('Trying to find RT Object "',St,'"');
{$ENDIF}
t := CurPage.FindRTObject(St);
if Assigned(CurPage) then
t := CurPage.FindRTObject(St);
if not Assigned(t) then
t:=CurReport.FindObject(Copy(Name, 1, Pos('.', Name) - 1));
Prop := Copy(Name, Pos('.', Name) + 1, 255);
@ -11853,6 +11854,8 @@ var
i:integer;
P:TfrControl;
begin
if not fVisible then
exit;
fHasVisibleControls:=False;
for i:=0 to Objects.Count - 1 do
begin