summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Rhodes <csr21@cantab.net>2012-11-06 11:56:43 +0000
committerChristophe Rhodes <csr21@cantab.net>2012-11-06 12:31:01 +0000
commit8214a69e20aa6d5ef2dbb86ca670a02b013db0f1 (patch)
treef740340489f56c0b5e6796a10ea92db55405a587 /src
parentab887ad7d7e9ebaa1f874862b1649329a7019cd1 (diff)
downloadfork-ledger-8214a69e20aa6d5ef2dbb86ca670a02b013db0f1.tar.gz
fork-ledger-8214a69e20aa6d5ef2dbb86ca670a02b013db0f1.tar.bz2
fork-ledger-8214a69e20aa6d5ef2dbb86ca670a02b013db0f1.zip
fix comment in display_filter_posts::output_rounding(post_t)
slightly more detail in the case of zero display_amount and --empty not specified.
Diffstat (limited to 'src')
-rw-r--r--src/filters.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/filters.cc b/src/filters.cc
index f5694133..5e2bf983 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -530,9 +530,11 @@ bool display_filter_posts::output_rounding(post_t& post)
}
// Allow the posting to be displayed if:
- // 1. It's display_amount would display as non-zero
- // 2. The --empty option was specified
- // 3. The account of the posting is <Revalued>
+ // 1. Its display_amount would display as non-zero, or
+ // 2. The --empty option was specified, or
+ // 3. a) The account of the posting is <Revalued>, and
+ // b) the revalued option is specified, and
+ // c) the --no-rounding option is not specified.
if (post.account == revalued_account) {
if (show_rounding)