summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-16 14:46:57 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2021-11-17 18:55:46 +0100
commit5cfe6907be9d7fec09c10db59a1fb29c278c23a5 (patch)
treeb9291e69b8d6fa98128a3ea537a79953a7570055
parentaa0daec58784504807e70d054644b44c2aeb0c2d (diff)
Related: tdf#142719 the first time undo adds an exception it gets lost
Change-Id: Ie963e92a15ddd45316f999e950fff359d7dd6f5d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125314 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 75a14a1e962793de1483ceea1bc36cc78144e386) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125145 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--editeng/source/misc/svxacorr.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 4507cd5523b5..6c7efa0e170b 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2406,8 +2406,7 @@ bool SvxAutoCorrectLanguageLists::AddToCplSttExceptList(const OUString& rNew)
bool SvxAutoCorrectLanguageLists::AddToWrdSttExceptList(const OUString& rNew)
{
bool bRet = false;
- SvStringsISortDtor* pExceptList = LoadWrdSttExceptList();
- if( !rNew.isEmpty() && pExceptList && pExceptList->insert( rNew ).second )
+ if( !rNew.isEmpty() && GetWrdSttExceptList()->insert( rNew ).second )
{
MakeUserStorage_Impl();
tools::SvRef<SotStorage> xStg = new SotStorage( sUserAutoCorrFile, StreamMode::READWRITE );