[gnc-quotes.cpp] fix quote report

This commit is contained in:
Yongun Seong 2024-10-01 02:35:34 +09:00
parent 18bb96f01c
commit a7804525b0
No known key found for this signature in database

View File

@ -342,10 +342,11 @@ GncQuotesImpl::report (const char* source, const StrVec& commodities,
{
auto quote_str{query_fq (source, commodities)};
auto ptree{parse_quotes (quote_str)};
auto source_pt_ai{ptree.find(source)};
if (is_currency)
show_currency_quotes(ptree, commodities, verbose);
show_currency_quotes(source_pt_ai->second, commodities, verbose);
else
show_quotes(ptree, commodities, verbose);
show_quotes(source_pt_ai->second, commodities, verbose);
}
catch (const GncQuoteException& err)
{