summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-14 00:32:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-14 00:32:44 -0400
commitbb044f882056aac97cba6f3046370c514852f1db (patch)
treed7ab172d9f67e973f67c2d5c93fb6ef386e63ff8 /amount.cc
parent42298cefd5ae0b4f25d4075dc19486f2782f69f1 (diff)
downloadfork-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.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/amount.cc b/amount.cc
index 00610c05..b8b5451a 100644
--- a/amount.cc
+++ b/amount.cc
@@ -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);