diff --git a/src/commodity.cc b/src/commodity.cc index 900fe07d..37f0b573 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -407,7 +407,10 @@ commodity_t::check_for_updated_price(const optional& point, "attempting to download a more current quote..."); if (optional quote = parent().get_commodity_quote(*this, in_terms_of)) { - return quote; + if (! in_terms_of || + (quote->price.has_commodity() && + quote->price.commodity() == *in_terms_of)) + return quote; } } }