summaryrefslogtreecommitdiff
path: root/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-04 16:24:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-04 16:24:41 -0400
commit9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48 (patch)
treea06ae88d3464a2fd6c4a3e184e7973768cf0d392 /xact.cc
parent966b231f23a0c74db105784ba1291c860ced483e (diff)
downloadfork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.tar.gz
fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.tar.bz2
fork-ledger-9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48.zip
First round of work to get the balance report working again.
Diffstat (limited to 'xact.cc')
-rw-r--r--xact.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/xact.cc b/xact.cc
index dd4269a0..ce4da0d7 100644
--- a/xact.cc
+++ b/xact.cc
@@ -266,6 +266,8 @@ void xact_t::add_to_value(value_t& value)
value += xdata_->value;
}
else if (cost || (! value.is_null() && ! value.is_realzero())) {
+ if (value.is_null())
+ value = amount_t();
value.add(amount, cost);
}
else {