gnucash stable: CSV Importer: Fix an old copy-paste error.

John Ralls jralls at code.gnucash.org
Sun May 11 12:47:17 EDT 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/848e60f2 (commit)
	from  https://github.com/Gnucash/gnucash/commit/6941abee (commit)



commit 848e60f278d5292b18c0fe4c28e22c1e64b4c49b
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun May 11 09:46:44 2025 -0700

    CSV Importer: Fix an old copy-paste error.

diff --git a/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp b/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp
index 760623b943..0cd957cb45 100644
--- a/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp
+++ b/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp
@@ -416,7 +416,7 @@ void GncPreSplit::UpdateCrossSplitCounters ()
             m_pre_trans->m_alt_currencies.push_back(curr);
         auto has_comm = [comm] (const gnc_commodity *vec_comm) { return gnc_commodity_equiv (comm, vec_comm); };
         if (comm && std::none_of (acct_comms.cbegin(), acct_comms.cend(), has_comm))
-            m_pre_trans->m_alt_currencies.push_back(comm);
+            m_pre_trans->m_acct_commodities.push_back(comm);
     }
 }
 



Summary of changes:
 gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list