summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc
index f725c247..3acb5624 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -1082,6 +1082,7 @@ namespace {
}
void operator()(const amount_t& amount) {
+ if(amount.is_zero()) return;
post_t& balance_post = temps.create_post(xact, &balance_account);
balance_post.amount = - amount;
(*handler)(balance_post);