diff --git a/components/rx/trunk/rxdb/rxdbgrid.pas b/components/rx/trunk/rxdb/rxdbgrid.pas index 093c4b6a2..052e61c05 100644 --- a/components/rx/trunk/rxdb/rxdbgrid.pas +++ b/components/rx/trunk/rxdb/rxdbgrid.pas @@ -6090,7 +6090,7 @@ begin for C in Columns do begin - if (C.Footer.ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and C.Visible then + if (C.Footer.ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and C.Visible and (C.Footer.FieldName<>'') then begin FCList.Add(C); C.Footer.FField:=DHS.FieldByName(C.Footer.FieldName); @@ -6098,7 +6098,7 @@ begin for F in C.Footers do begin - if (F.ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and C.Visible then + if (F.ValueType in [fvtSum, fvtAvg, fvtMax, fvtMin]) and C.Visible and (F.FieldName<>'') then begin if FCList.IndexOf(C) < 0 then FCList.Add(C);