From 81e17531b94bf17d2b29b1c1d8860fed86088f4b Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Sat, 11 Feb 2023 14:00:58 +0100 Subject: [PATCH] Csv Tx Imp Props - don't reset multi column property errors by default This would mask errors encountered in previous columns. --- gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 652a3282d0..de0a168c09 100644 --- a/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp +++ b/gnucash/import-export/csv-imp/gnc-imp-props-tx.cpp @@ -557,8 +557,9 @@ void GncPreSplit::add (GncTransPropType prop_type, const std::string& value) { try { - // Drop any existing error for the prop_type we're about to add to - m_errors.erase(prop_type); + /* Don't try to add to a property that has an error already */ + if (m_errors.find(prop_type) != m_errors.cend()) + return; auto num_val = GncNumeric(); switch (prop_type)