From bb044f882056aac97cba6f3046370c514852f1db Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 14 Aug 2004 00:32:44 -0400 Subject: fix to amount printing --- amount.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'amount.cc') 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); -- cgit v1.2.3