diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/amount.cc b/src/amount.cc index 88717e24..36c8fec9 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -1176,8 +1176,7 @@ void amount_t::print(std::ostream& _out, bool omit_commodity, } if (! omit_commodity && ! comm.has_flags(COMMODITY_STYLE_SUFFIXED)) { - comm.write(out); - + comm.print(out); if (comm.has_flags(COMMODITY_STYLE_SEPARATED)) out << " "; } @@ -1262,8 +1261,7 @@ void amount_t::print(std::ostream& _out, bool omit_commodity, if (! omit_commodity && comm.has_flags(COMMODITY_STYLE_SUFFIXED)) { if (comm.has_flags(COMMODITY_STYLE_SEPARATED)) out << " "; - - comm.write(out); + comm.print(out); } mpz_clear(quotient); |