diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-05 01:32:50 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 05:48:44 -0400 |
commit | 6ac8f7b603a6135ff9eb7923e5e6027dbd89af56 (patch) | |
tree | 1ccd126d9d74922b5b42a1b8fbea0a2dbe2af5f9 /amount.cc | |
parent | 7b591dd27a53f60aed7d2f6fe81d2953aa49b1b2 (diff) | |
download | fork-ledger-6ac8f7b603a6135ff9eb7923e5e6027dbd89af56.tar.gz fork-ledger-6ac8f7b603a6135ff9eb7923e5e6027dbd89af56.tar.bz2 fork-ledger-6ac8f7b603a6135ff9eb7923e5e6027dbd89af56.zip |
*** no comment ***
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -810,7 +810,7 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt) } if (precision) { - out << ((comm.flags() & COMMODITY_STYLE_EUROPEAN) ? ',' : '.'); + out << ((comm.flags & COMMODITY_STYLE_EUROPEAN) ? ',' : '.'); std::ostringstream final; final.width(precision); @@ -828,8 +828,8 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt) if (i == len) out << str; - else if (i < comm.precision()) - out << std::string(str, 0, comm.precision()); + else if (i < comm.precision) + out << std::string(str, 0, comm.precision); else out << std::string(str, 0, i); } |