diff options
Diffstat (limited to 'sw/source/ui/lingu/olmenu.cxx')
-rw-r--r-- | sw/source/ui/lingu/olmenu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/lingu/olmenu.cxx b/sw/source/ui/lingu/olmenu.cxx index 474179be91c9..687d9a25a37c 100644 --- a/sw/source/ui/lingu/olmenu.cxx +++ b/sw/source/ui/lingu/olmenu.cxx @@ -677,8 +677,8 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) // if orginal word has a trailing . (likely the end of a sentence) // and the replacement text hasn't, then add it to the replacement if (!aTmp.isEmpty() && !aOrig.isEmpty() && - '.' == aOrig[ aOrig.getLength() - 1] && /* !IsAlphaNumeric ??*/ - '.' != aTmp[ aTmp.getLength() - 1]) + aOrig.endsWith(".") && /* !IsAlphaNumeric ??*/ + !aTmp.endsWith(".")) { aTmp += "."; } |