mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 16:49:13 +02:00
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:
parent
88212d1ab2
commit
3105302469
@ -11348,7 +11348,8 @@ begin
|
|||||||
{$IFDEF DebugLR}
|
{$IFDEF DebugLR}
|
||||||
DebugLn('Trying to find RT Object "',St,'"');
|
DebugLn('Trying to find RT Object "',St,'"');
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
t := CurPage.FindRTObject(St);
|
if Assigned(CurPage) then
|
||||||
|
t := CurPage.FindRTObject(St);
|
||||||
if not Assigned(t) then
|
if not Assigned(t) then
|
||||||
t:=CurReport.FindObject(Copy(Name, 1, Pos('.', Name) - 1));
|
t:=CurReport.FindObject(Copy(Name, 1, Pos('.', Name) - 1));
|
||||||
Prop := Copy(Name, Pos('.', Name) + 1, 255);
|
Prop := Copy(Name, Pos('.', Name) + 1, 255);
|
||||||
@ -11853,6 +11854,8 @@ var
|
|||||||
i:integer;
|
i:integer;
|
||||||
P:TfrControl;
|
P:TfrControl;
|
||||||
begin
|
begin
|
||||||
|
if not fVisible then
|
||||||
|
exit;
|
||||||
fHasVisibleControls:=False;
|
fHasVisibleControls:=False;
|
||||||
for i:=0 to Objects.Count - 1 do
|
for i:=0 to Objects.Count - 1 do
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user