[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - cui/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 21 12:22:22 UTC 2019


 cui/source/dialogs/SpellDialog.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5b2f72e5eaa13cbbb09cb81995545895669d8a90
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jun 21 11:29:22 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 21 14:21:22 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/74498
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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(),


More information about the Libreoffice-commits mailing list