summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-06-03 22:41:45 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-06-04 08:42:50 +0200
commite0c7d7bc511c90e820adaaebb14ca8175364371d (patch)
treefc538c0c9652203efb9d9af283dd471932a31826 /sc
parentbefc6ac8e20863c913da0fd0bac2fa26bab1b025 (diff)
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.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/appoptio.cxx2
1 files changed, 2 insertions, 0 deletions
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);