sc/source/core/tool/appoptio.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e0c7d7bc511c90e820adaaebb14ca8175364371d
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Jun 3 22:41:45 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Jun 4 08:42:50 2023 +0200

    tdf#151987: clean default list before using non-default one
    
    This restores the code that I had dropped inexplicably in commit
    8810812e58f1b014d3156235c1ab5a2d6c73c828 (tdf#132145: Synchronize
    ScAppCfg with configuration, 2021-11-29).
    
    Change-Id: Ie0215c9296d9cf9fcd75ed5b08218af9900eadb5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152579
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sc/source/core/tool/appoptio.cxx b/sc/source/core/tool/appoptio.cxx
index 244f4ffc777e..3b19fbed2204 100644
--- a/sc/source/core/tool/appoptio.cxx
+++ b/sc/source/core/tool/appoptio.cxx
@@ -415,6 +415,8 @@ void ScAppCfg::ReadSortListCfg()
 
         if (!bDefault)
         {
+            aList.clear();
+
             for (const OUString& rStr : std::as_const(aSeq))
             {
                 ScUserListData* pNew = new ScUserListData(rStr);

Reply via email to