cui/source/dialogs/SpellDialog.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9cbb4052d11d8fc5b408cfe75ddb5305f9a7461b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jun 21 11:29:22 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Jun 21 13:41:13 2019 +0200 move the cursor by the length of the final replacement rather than the length of the unprocessed replacement Change-Id: I43fe8d66d5a664b5e96877c17a00f65f395c086d Reviewed-on: https://gerrit.libreoffice.org/74495 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 42ea20df9630..0757d011c536 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -1586,8 +1586,8 @@ bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, const css ChangeMarkedWord(sReplacement, LanguageTag::convertToLanguageType( pSpellErrorDescription->aLocale )); - aCursor.GetIndex() += xEntry->getReplacementText().getLength(); - // maybe the error found here is already added to the dictionary and has to be ignored + aCursor.GetIndex() += sReplacement.getLength(); + // maybe the error found here is already added to the dictionary and has to be ignored } else if(pSpellErrorDescription && !bGrammarError && xSpell->isValid(GetErrorText(), _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits