summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-21 11:29:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-21 13:41:13 +0200
commit9cbb4052d11d8fc5b408cfe75ddb5305f9a7461b (patch)
treeeda5c3a037d97c5fcd0ce727d16252e45a62fdf9 /cui
parent9712f5d2316fa469b92f2f8092925e2cd4e8dd5b (diff)
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx4
1 files changed, 2 insertions, 2 deletions
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(),