summaryrefslogtreecommitdiff
path: root/src/balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-27 19:01:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-27 19:01:55 -0400
commitaae134f69275e4f71ec70d893cdfd0b5839fef8e (patch)
tree57413e98e1adafe38315a7397b24ca350690c853 /src/balance.cc
parentcbf8f355d16224bc119e2d41a22a1d0b9d7bf0ff (diff)
downloadfork-ledger-aae134f69275e4f71ec70d893cdfd0b5839fef8e.tar.gz
fork-ledger-aae134f69275e4f71ec70d893cdfd0b5839fef8e.tar.bz2
fork-ledger-aae134f69275e4f71ec70d893cdfd0b5839fef8e.zip
Fixed a display issue with the balance report
Diffstat (limited to 'src/balance.cc')
-rw-r--r--src/balance.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/balance.cc b/src/balance.cc
index 274f860a..86352fa2 100644
--- a/src/balance.cc
+++ b/src/balance.cc
@@ -290,7 +290,11 @@ void balance_t::print(std::ostream& out,
if (first) {
out.width(first_width);
- out << (right_justify ? std::right : std::left) << 0;
+ if (right_justify)
+ out << std::right;
+ else
+ out << std::left;
+ out << 0;
}
}