Fossil SCM

fixed condition which caused the "Yearly total" row to not be rendered on the oldest year in the bymonth report in some cases.

stephan 2016-01-21 12:44 trunk
Commit ec3dd27f97571cd66a2ac129fce0d0a738d58182
1 file changed +2 -1
+2 -1
--- src/statrep.c
+++ src/statrep.c
@@ -1,7 +1,7 @@
11
/*
2
-** Copyright (c) 2013 Stephen Beal
2
+** Copyright (c) 2013 Stephan Beal
33
**
44
** This program is free software; you can redistribute it and/or
55
** modify it under the terms of the Simplified BSD License (also
66
** known as the "2-Clause License" or "FreeBSD License".)
77
@@ -241,10 +241,11 @@
241241
rowClass = ++nRowNumber % 2;
242242
@ <tr class='row%d(rowClass)'>
243243
@ <td></td>
244244
@ <td colspan='2'>Yearly total: %d(nEventsPerYear)</td>
245245
@</tr>
246
+ showYearTotal = 0;
246247
}
247248
nEventsPerYear = 0;
248249
memcpy(zPrevYear,zTimeframe,4);
249250
rowClass = ++nRowNumber % 2;
250251
@ <tr class='row%d(rowClass)'>
251252
--- src/statrep.c
+++ src/statrep.c
@@ -1,7 +1,7 @@
1 /*
2 ** Copyright (c) 2013 Stephen Beal
3 **
4 ** This program is free software; you can redistribute it and/or
5 ** modify it under the terms of the Simplified BSD License (also
6 ** known as the "2-Clause License" or "FreeBSD License".)
7
@@ -241,10 +241,11 @@
241 rowClass = ++nRowNumber % 2;
242 @ <tr class='row%d(rowClass)'>
243 @ <td></td>
244 @ <td colspan='2'>Yearly total: %d(nEventsPerYear)</td>
245 @</tr>
 
246 }
247 nEventsPerYear = 0;
248 memcpy(zPrevYear,zTimeframe,4);
249 rowClass = ++nRowNumber % 2;
250 @ <tr class='row%d(rowClass)'>
251
--- src/statrep.c
+++ src/statrep.c
@@ -1,7 +1,7 @@
1 /*
2 ** Copyright (c) 2013 Stephan Beal
3 **
4 ** This program is free software; you can redistribute it and/or
5 ** modify it under the terms of the Simplified BSD License (also
6 ** known as the "2-Clause License" or "FreeBSD License".)
7
@@ -241,10 +241,11 @@
241 rowClass = ++nRowNumber % 2;
242 @ <tr class='row%d(rowClass)'>
243 @ <td></td>
244 @ <td colspan='2'>Yearly total: %d(nEventsPerYear)</td>
245 @</tr>
246 showYearTotal = 0;
247 }
248 nEventsPerYear = 0;
249 memcpy(zPrevYear,zTimeframe,4);
250 rowClass = ++nRowNumber % 2;
251 @ <tr class='row%d(rowClass)'>
252

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button