diff options
-rw-r--r-- | src/amount.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amount.cc b/src/amount.cc index d9b7c82c..2837178c 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -738,8 +738,7 @@ amount_t::value(const bool primary_only, if (has_commodity() && (! primary_only || ! commodity().has_flags(COMMODITY_PRIMARY))) { if (in_terms_of && - (commodity() == *in_terms_of || - commodity().referent() == in_terms_of->referent())) { + commodity().referent() == in_terms_of->referent()) { return *this; } else if (has_annotation() && annotation().price && |