diff --git a/sv/sv2100.cpp b/sv/sv2100.cpp index f88eeb926..024882da1 100755 --- a/sv/sv2100.cpp +++ b/sv/sv2100.cpp @@ -124,7 +124,7 @@ void TRicalcolo_stats::calc_stats(const TDate& dfr, const TDate& dto) if (!tipodoc.statistiche()) continue; - for (int r = doc.physical_rows()-1; r > 0; r--) + for (int r = doc.physical_rows(); r > 0; r--) { const TRiga_documento& rdoc = doc[r]; _agg.add(rdoc);