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

New commits:
commit 9f7e3560ba3ecdf52bc5b9637485fea57ae1b132
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Jun 3 22:41:45 2023 +0300
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jun 5 13:25:03 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>
    (cherry picked from commit e0c7d7bc511c90e820adaaebb14ca8175364371d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152545
    Reviewed-by: Eike Rathke <er...@redhat.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