summaryrefslogtreecommitdiff
path: root/src/filters.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-28 00:08:39 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-28 00:08:39 -0600
commitfc62402c60cd3faac37f3cd60ee417d119869929 (patch)
tree66aeec13f31162eda41f8d3eed114c34859c386c /src/filters.h
parent6d04f605738fe47477fdc95342008dfe7d091c1a (diff)
downloadfork-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.h')
-rw-r--r--src/filters.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters.h b/src/filters.h
index e7a2eefa..d207d842 100644
--- a/src/filters.h
+++ b/src/filters.h
@@ -732,8 +732,8 @@ public:
virtual void flush() {
if (last_post && interval.duration) {
- if (interval.is_valid())
- report_subtotal(interval);
+ if (last_interval && interval != last_interval)
+ report_subtotal(last_interval);
subtotal_posts::flush();
}
}