diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-06-21 11:29:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-06-21 14:21:22 +0200 |
commit | 5b2f72e5eaa13cbbb09cb81995545895669d8a90 (patch) | |
tree | d0d1f0c8b232ff3bef27995749485a24648b3e3c /cui | |
parent | 91420d722f841e9f3bd98fe7a654ad597b8a2711 (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/74498
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.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 1d19d95ac0d3..ac3b22bc8002 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(), |