diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-28 00:08:39 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-28 00:08:39 -0600 |
commit | fc62402c60cd3faac37f3cd60ee417d119869929 (patch) | |
tree | 66aeec13f31162eda41f8d3eed114c34859c386c /src/filters.cc | |
parent | 6d04f605738fe47477fdc95342008dfe7d091c1a (diff) | |
download | fork-ledger-fc62402c60cd3faac37f3cd60ee417d119869929.tar.gz fork-ledger-fc62402c60cd3faac37f3cd60ee417d119869929.tar.bz2 fork-ledger-fc62402c60cd3faac37f3cd60ee417d119869929.zip |
Fixed nasty problem related to interval reporting
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters.cc b/src/filters.cc index 331073eb..f57f37e7 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -924,7 +924,7 @@ void interval_posts::operator()(post_t& post) report_subtotal(last_interval); if (generate_empty_posts) { - for (++last_interval; interval != last_interval; ++last_interval) { + for (++last_interval; last_interval < interval; ++last_interval) { // Generate a null posting, so the intervening periods can be // seen when -E is used, or if the calculated amount ends up being // non-zero @@ -940,7 +940,7 @@ void interval_posts::operator()(post_t& post) report_subtotal(last_interval); } - assert(interval == last_interval); + assert(last_interval <= interval); } else { last_interval = interval; } |