From 1c616f8626ceedf84a55749e44c8ef9e7bcbc402 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 19 Feb 2009 15:51:14 -0400 Subject: If a transaction's total is null, return 0 instead --- src/xact.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xact.cc') diff --git a/src/xact.cc b/src/xact.cc index bbe8ff47..71fba7a7 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -171,7 +171,7 @@ namespace { } value_t get_total(xact_t& xact) { - if (xact.xdata_) + if (xact.xdata_ && ! xact.xdata_->total.is_null()) return xact.xdata_->total; else return xact.amount; -- cgit v1.2.3