summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevinse <levinse>2011-01-21 01:11:06 +0000
committerlevinse <levinse>2011-01-21 01:11:06 +0000
commitdcac20b532a2420aeeddeea1e59c131e9d65f82e (patch)
treec787ecbe1c12c3b53e906f690c6ec6d33ad90f10
parent6812e3576a360cc90b6fe3cf89b918317dbee3dd (diff)
bug fix: all Excel reports using bottom_total option had total row off by one, RT10911
-rw-r--r--httemplate/graph/elements/report.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/graph/elements/report.html b/httemplate/graph/elements/report.html
index 2a5a1420f..2be511aec 100644
--- a/httemplate/graph/elements/report.html
+++ b/httemplate/graph/elements/report.html
@@ -105,11 +105,11 @@ any delimiter and linked from the elements in @data.
% $worksheet->write( $r, $c++, shift( @row_labels ) );
% foreach ( @{ shift( @data ) } ) {
% $total += $_;
-% $bottom_total[$c] += $_;
+% $bottom_total[$c-1] += $_;
% $worksheet->write($r, $c++, sprintf($sprintf, $_) );
% }
% unless ( $opt{'nototal'} ) {
-% $bottom_total[$c] += $total;
+% $bottom_total[$c-1] += $total;
% $worksheet->write($r, $c++, sprintf($sprintf, $total) );
% }
% }