diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/amount.cc b/src/amount.cc index 6d94cee1..5d44251a 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -1014,19 +1014,13 @@ void amount_t::print(std::ostream& _out) const comm.print(out); } - // If there are any annotations associated with this commodity, - // output them now. - - if (comm.annotated) { - annotated_commodity_t& ann(static_cast<annotated_commodity_t&>(comm)); - assert(! ann.details.price || &*ann.details.price != this); - ann.write_annotations(out); - } - - // 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, and not just the first part. + // If there are any annotations associated with this commodity, output them + // now. + comm.write_annotations(out); + // 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, + // and not just the first part. _out << out.str(); } |