summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
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);