editeng/source/misc/svxacorr.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 5cfe6907be9d7fec09c10db59a1fb29c278c23a5 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Nov 16 14:46:57 2021 +0000 Commit: Michael Stahl <[email protected]> CommitDate: Wed Nov 17 18:55:46 2021 +0100 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 <[email protected]> (cherry picked from commit 75a14a1e962793de1483ceea1bc36cc78144e386) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125145 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Michael Stahl <[email protected]> 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 );
