diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-10 14:28:07 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-10 14:28:07 -0400 |
commit | bea90a2b985694acb8554f50136fa5afc7fdba12 (patch) | |
tree | d27bb8f74c157da289d2da92b0728acd47bac9f8 /src/print.cc | |
parent | 685b12d8d3d225498f6dfdbe7b17056684cc2ca8 (diff) | |
download | fork-ledger-bea90a2b985694acb8554f50136fa5afc7fdba12.tar.gz fork-ledger-bea90a2b985694acb8554f50136fa5afc7fdba12.tar.bz2 fork-ledger-bea90a2b985694acb8554f50136fa5afc7fdba12.zip |
Fixed the "generate" command
Diffstat (limited to 'src/print.cc')
-rw-r--r-- | src/print.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/print.cc b/src/print.cc index 84aa441f..2795c7ad 100644 --- a/src/print.cc +++ b/src/print.cc @@ -119,9 +119,9 @@ namespace { } foreach (post_t * post, xact.posts) { - if (post->has_flags(ITEM_TEMP | ITEM_GENERATED) && - ! post->has_flags(POST_ANONYMIZED) && - ! report.HANDLED(print_virtual)) + if (! report.HANDLED(generated) && + (post->has_flags(ITEM_TEMP | ITEM_GENERATED) && + ! post->has_flags(POST_ANONYMIZED))) continue; out << " "; @@ -157,7 +157,7 @@ namespace { if (account_width < name.length()) account_width = name.length(); - if (! post->has_flags(POST_CALCULATED) || report.HANDLED(print_virtual)) { + if (! post->has_flags(POST_CALCULATED) || report.HANDLED(generated)) { out << name.extract(); int slip = (static_cast<int>(account_width) - static_cast<int>(name.length())); |