diff options
Diffstat (limited to 'src/balance.cc')
-rw-r--r-- | src/balance.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/balance.cc b/src/balance.cc index c9ca148d..7f8ed572 100644 --- a/src/balance.cc +++ b/src/balance.cc @@ -240,17 +240,11 @@ void balance_t::print(std::ostream& out, first = false; width = first_width; } - - out.width(width); - out.fill(' '); - out << std::right << *amount; + amount->right_justify(out, width); } - if (first) { - out.width(first_width); - out.fill(' '); - out << std::right << "0"; - } + if (first) + amount_t(0L).right_justify(out, first_width); } } // namespace ledger |