From 9c9a34388a0697c4c4c4bd126ec8dd7e1244cd48 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 4 Aug 2008 16:24:41 -0400 Subject: First round of work to get the balance report working again. --- xact.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xact.cc') 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 { -- cgit v1.2.3