diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-19 15:51:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-19 15:51:14 -0400 |
commit | 1c616f8626ceedf84a55749e44c8ef9e7bcbc402 (patch) | |
tree | 29ce79b68ab74781235872fe1dac33ae2e717b37 /src/xact.cc | |
parent | 3826cb1beee5abb46502c11cd69e7e493ad4f4ae (diff) | |
download | fork-ledger-1c616f8626ceedf84a55749e44c8ef9e7bcbc402.tar.gz fork-ledger-1c616f8626ceedf84a55749e44c8ef9e7bcbc402.tar.bz2 fork-ledger-1c616f8626ceedf84a55749e44c8ef9e7bcbc402.zip |
If a transaction's total is null, return 0 instead
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |