mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-quotes.cpp] fix quote report
This commit is contained in:
@@ -342,10 +342,11 @@ GncQuotesImpl::report (const char* source, const StrVec& commodities,
|
|||||||
{
|
{
|
||||||
auto quote_str{query_fq (source, commodities)};
|
auto quote_str{query_fq (source, commodities)};
|
||||||
auto ptree{parse_quotes (quote_str)};
|
auto ptree{parse_quotes (quote_str)};
|
||||||
|
auto source_pt_ai{ptree.find(source)};
|
||||||
if (is_currency)
|
if (is_currency)
|
||||||
show_currency_quotes(ptree, commodities, verbose);
|
show_currency_quotes(source_pt_ai->second, commodities, verbose);
|
||||||
else
|
else
|
||||||
show_quotes(ptree, commodities, verbose);
|
show_quotes(source_pt_ai->second, commodities, verbose);
|
||||||
}
|
}
|
||||||
catch (const GncQuoteException& err)
|
catch (const GncQuoteException& err)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user