diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-14 00:32:44 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-14 00:32:44 -0400 |
commit | bb044f882056aac97cba6f3046370c514852f1db (patch) | |
tree | d7ab172d9f67e973f67c2d5c93fb6ef386e63ff8 /amount.cc | |
parent | 42298cefd5ae0b4f25d4075dc19486f2782f69f1 (diff) | |
download | fork-ledger-bb044f882056aac97cba6f3046370c514852f1db.tar.gz fork-ledger-bb044f882056aac97cba6f3046370c514852f1db.tar.bz2 fork-ledger-bb044f882056aac97cba6f3046370c514852f1db.zip |
fix to amount printing
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -525,7 +525,9 @@ std::ostream& operator<<(std::ostream& out, const amount_t& amt) bool printed = false; - for (strings_list::iterator i = strs.begin(); i != strs.end(); i++) { + for (strings_list::reverse_iterator i = strs.rbegin(); + i != strs.rend(); + i++) { if (printed) { out << (amt.commodity->flags & COMMODITY_STYLE_EUROPEAN ? '.' : ','); out.width(3); |