From 7b6cc4c365758a293f914f7b3b61af78e4313d4a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 20 Jun 2010 20:55:24 -0400 Subject: Output budget even if no postings directly matched --- src/filters.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/filters.cc') diff --git a/src/filters.cc b/src/filters.cc index d4fbae06..1dd410d3 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -1233,7 +1233,6 @@ void budget_posts::operator()(post_t& post) handle: if (post_in_budget && flags & BUDGET_BUDGETED) { report_budget_items(post.date()); - count++; item_handler::operator()(post); } else if (! post_in_budget && flags & BUDGET_UNBUDGETED) { @@ -1243,7 +1242,7 @@ void budget_posts::operator()(post_t& post) void budget_posts::flush() { - if (count > 0) + if (flags & BUDGET_BUDGETED) report_budget_items(terminus); item_handler::flush(); -- cgit v1.2.3