bugfix incorrect min-date handling

This bugfix affects net-linechart and net-barchart - assumes the min-date for dates must be 0. Net worth charts straddling the date 01-01-1970 were incorrect. I'll fix in time64-ftw as well.
This commit is contained in:
christopherlam 2017-12-28 19:21:28 +11:00 committed by Christopher Lam
parent 82f1384c58
commit 766e74096f

View File

@ -155,7 +155,7 @@
(list min-date max-date datepairs)))
(define (category-report-dates-accumulate dates)
(let* ((min-date (gnc:secs->timepair 0))
(let* ((min-date (decdate (car (list-min-max dates gnc:timepair-lt)) DayDelta))
(max-date (cdr (list-min-max dates gnc:timepair-lt)))
(datepairs (reverse! (cdr (fold (lambda (next acc)
(let ((prev (car acc))