diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-04 15:32:47 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:48:44 -0400 |
commit | 5766befbb760ee3bfb1d8defc3dc94ee04a7c1aa (patch) | |
tree | 33111de3081eba598c2231048e339d82173cd699 | |
parent | 687eaefc375c06b122f83e4235745837add195d5 (diff) | |
download | fork-ledger-5766befbb760ee3bfb1d8defc3dc94ee04a7c1aa.tar.gz fork-ledger-5766befbb760ee3bfb1d8defc3dc94ee04a7c1aa.tar.bz2 fork-ledger-5766befbb760ee3bfb1d8defc3dc94ee04a7c1aa.zip |
*** no comment ***
-rw-r--r-- | amount.cc | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -812,14 +812,10 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt) if (precision) { out << ((comm.flags & COMMODITY_STYLE_EUROPEAN) ? ',' : '.'); - char * p = mpz_get_str(NULL, 10, rquotient); - int len = std::strlen(p); - if (len < precision) - precision = len < comm.precision() ? comm.precision() : len; - out.width(precision); out.fill('0'); + char * p = mpz_get_str(NULL, 10, rquotient); out << p; std::free(p); } |