summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-20 03:15:42 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-20 03:15:42 -0500
commitf76d458ab7f200bd52676fe8103fbfaae4f10488 (patch)
tree9f50d9b2e547a080507743e084df4c5fff2f53c1 /src/filters.cc
parent078c8380072ec7bc07d1e50afb34da041f446781 (diff)
downloadfork-ledger-f76d458ab7f200bd52676fe8103fbfaae4f10488.tar.gz
fork-ledger-f76d458ab7f200bd52676fe8103fbfaae4f10488.tar.bz2
fork-ledger-f76d458ab7f200bd52676fe8103fbfaae4f10488.zip
Strip annotations in display_filter_posts
Fixes #718
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 73ee200d..b5f68907 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -522,7 +522,8 @@ bool display_filter_posts::output_rounding(post_t& post)
value_t new_display_total;
if (show_rounding) {
- new_display_total = display_total_expr.calc(bound_scope);
+ new_display_total = (display_total_expr.calc(bound_scope)
+ .strip_annotations(report.what_to_keep()));
DEBUG("filters.changed_value.rounding",
"rounding.new_display_total = " << new_display_total);
@@ -539,7 +540,8 @@ bool display_filter_posts::output_rounding(post_t& post)
return true;
}
- if (value_t repriced_amount = display_amount_expr.calc(bound_scope)) {
+ if (value_t repriced_amount = (display_amount_expr.calc(bound_scope)
+ .strip_annotations(report.what_to_keep()))) {
if (! last_display_total.is_null()) {
DEBUG("filters.changed_value.rounding",
"rounding.repriced_amount = " << repriced_amount);