summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-01-09 20:47:24 +0100
committerAndras Timar <andras.timar@collabora.com>2021-01-12 11:13:34 +0100
commit2c6b6366a5ce7b4c4b034aba0ec63bb15cfc39fa (patch)
tree595131b564f4633bfa11ba0d67e76f91c6f8be07 /editeng
parent4ff1f8153a3155303ea74f09cf4cb03d61e625a6 (diff)
tdf#96787: AutoCorrect: after deleting a replacement entry, it's still used
If specific acor<language>.dat exists in "user", don't use the initial one in "share" since the initial one will still contain the deleted entry. See detailed explanation here: https://bugs.documentfoundation.org/show_bug.cgi?id=96787#c21 Change-Id: Ic349159c93d9fc327f38a1d4e8187e3bdc16d08a Change-Id: If6b16641d04721f2945a8e920e2933d1b8baa90f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109039 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit ae56dc05b27f05ffcee99845d661a237e70a7a51) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108999 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 10f91239625a..6b24dbd23bf5 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1798,6 +1798,8 @@ const SvxAutocorrWord* SvxAutoCorrect::SearchWordsInList(
rLang = aLanguageTag;
return pRet;
}
+ else
+ return nullptr;
}
// If it still could not be found here, then keep on searching