LazReport, fix initial value on COUNT aggregate function, band name was not evaluated correctly

git-svn-id: trunk@27295 -
This commit is contained in:
jesus 2010-09-10 20:45:11 +00:00
parent 62e7fc2053
commit 514a2ed285

View File

@ -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));