From a7804525b0c382c00a41bb6993bd6a7765788e34 Mon Sep 17 00:00:00 2001 From: Yongun Seong Date: Tue, 1 Oct 2024 02:35:34 +0900 Subject: [PATCH] [gnc-quotes.cpp] fix quote report --- libgnucash/app-utils/gnc-quotes.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libgnucash/app-utils/gnc-quotes.cpp b/libgnucash/app-utils/gnc-quotes.cpp index 435806c3e4..67258aaf5b 100644 --- a/libgnucash/app-utils/gnc-quotes.cpp +++ b/libgnucash/app-utils/gnc-quotes.cpp @@ -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) {