summaryrefslogtreecommitdiff
path: root/src/amount.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/amount.cc')
-rw-r--r--src/amount.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amount.cc b/src/amount.cc
index 8d433ad4..59671f98 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -650,7 +650,8 @@ amount_t& amount_t::in_place_unreduce()
optional<amount_t> amount_t::value(const optional<datetime_t>& moment) const
{
if (quantity) {
- optional<amount_t> amt(commodity().value(moment));
+ // jww (2008-09-21): 'none' is not the right argument here.
+ optional<amount_t> amt(commodity().value(none, moment));
if (amt)
return (*amt * number()).round();
} else {