diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-07 08:23:22 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-07 08:32:14 -0400 |
commit | c85cf0d810846e6ffc2a45b7283adacc202db30f (patch) | |
tree | b444a914c8551951556a15794a94810d38b62414 /src/amount.cc | |
parent | a4d4f9979486eb82c05bd032e1452c2fd400249f (diff) | |
download | fork-ledger-c85cf0d810846e6ffc2a45b7283adacc202db30f.tar.gz fork-ledger-c85cf0d810846e6ffc2a45b7283adacc202db30f.tar.bz2 fork-ledger-c85cf0d810846e6ffc2a45b7283adacc202db30f.zip |
Fixed the way prices and costs are print'd
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amount.cc b/src/amount.cc index f68917f3..ed8f09d1 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -1216,7 +1216,7 @@ void amount_t::parse_conversion(const string& larger_str, smaller.commodity().set_larger(larger); } -void amount_t::print(std::ostream& _out, const uint_least8_t) const +void amount_t::print(std::ostream& _out, const uint_least8_t flags) const { VERIFY(valid()); @@ -1246,7 +1246,7 @@ void amount_t::print(std::ostream& _out, const uint_least8_t) const // If there are any annotations associated with this commodity, output them // now. - comm.write_annotations(out); + comm.write_annotations(out, flags & AMOUNT_PRINT_NO_COMPUTED_ANNOTATIONS); // Things are output to a string first, so that if anyone has specified a // width or fill for _out, it will be applied to the entire amount string, |