From 1fa3c1956ff087a5621184e18b0d785e6c41646a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Feb 2009 01:22:22 -0400 Subject: Moved amount_t::right_justify to simply ::justify --- src/balance.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/balance.cc') diff --git a/src/balance.cc b/src/balance.cc index 7f8ed572..92a6c767 100644 --- a/src/balance.cc +++ b/src/balance.cc @@ -30,6 +30,7 @@ */ #include "balance.h" +#include "unistring.h" namespace ledger { @@ -240,11 +241,17 @@ void balance_t::print(std::ostream& out, first = false; width = first_width; } - amount->right_justify(out, width); + + std::ostringstream buf; + buf << *amount; + justify(out, buf.str(), width, true); } - if (first) - amount_t(0L).right_justify(out, first_width); + if (first) { + std::ostringstream buf; + buf << amount_t(0L); + justify(out, buf.str(), first_width, true); + } } } // namespace ledger -- cgit v1.2.3