mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 10:18:17 +02:00
LazReport, fix initial value on COUNT aggregate function, band name was not evaluated correctly
git-svn-id: trunk@27295 -
This commit is contained in:
parent
62e7fc2053
commit
514a2ed285
@ -9463,8 +9463,12 @@ begin
|
||||
else if (DataSet = nil) or (Field = nil) then
|
||||
begin
|
||||
s1 := Trim(string(p2));
|
||||
if s1 = '' then
|
||||
s1 := CurBand.View.Name;
|
||||
if s1 = '' then begin
|
||||
if (dk=dkCount) and (p1+''<>'') then
|
||||
s1 := p1
|
||||
else
|
||||
s1 := CurBand.View.Name;
|
||||
end;
|
||||
if dk <> dkCount then
|
||||
s2 := Trim(string(p3)) else
|
||||
s2 := Trim(string(p2));
|
||||
|
Loading…
Reference in New Issue
Block a user