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.
Commit
ec3dd27f97571cd66a2ac129fce0d0a738d58182
Parent
2bd670ac3cfb1fb…
1 file changed
+2
-1
+2
-1
| --- src/statrep.c | ||
| +++ src/statrep.c | ||
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | /* |
| 2 | -** Copyright (c) 2013 Stephen Beal | |
| 2 | +** Copyright (c) 2013 Stephan Beal | |
| 3 | 3 | ** |
| 4 | 4 | ** This program is free software; you can redistribute it and/or |
| 5 | 5 | ** modify it under the terms of the Simplified BSD License (also |
| 6 | 6 | ** known as the "2-Clause License" or "FreeBSD License".) |
| 7 | 7 | |
| @@ -241,10 +241,11 @@ | ||
| 241 | 241 | rowClass = ++nRowNumber % 2; |
| 242 | 242 | @ <tr class='row%d(rowClass)'> |
| 243 | 243 | @ <td></td> |
| 244 | 244 | @ <td colspan='2'>Yearly total: %d(nEventsPerYear)</td> |
| 245 | 245 | @</tr> |
| 246 | + showYearTotal = 0; | |
| 246 | 247 | } |
| 247 | 248 | nEventsPerYear = 0; |
| 248 | 249 | memcpy(zPrevYear,zTimeframe,4); |
| 249 | 250 | rowClass = ++nRowNumber % 2; |
| 250 | 251 | @ <tr class='row%d(rowClass)'> |
| 251 | 252 |
| --- 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 |