mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[budget] fixcrash: fix crasher for some periods
eg. the following combo would previously crash: - periods from next to current - use accumulated amounts
This commit is contained in:
parent
5d15fd41fd
commit
f015a96833
@ -332,7 +332,7 @@
|
||||
(let* ((comm (xaccAccountGetCommodity acct))
|
||||
(reverse-balance? (gnc-reverse-balance acct))
|
||||
(allperiods (filter number? (gnc:list-flatten column-list)))
|
||||
(total-periods (if accumulate?
|
||||
(total-periods (if (and accumulate? (not (null? allperiods)))
|
||||
(iota (1+ (apply max allperiods)))
|
||||
allperiods))
|
||||
(income-acct? (eqv? (xaccAccountGetType acct) ACCT-TYPE-INCOME)))
|
||||
|
Loading…
Reference in New Issue
Block a user