[Libreoffice-commits] core.git: cui/source

Mike Kaganski mike.kaganski at collabora.com
Tue Apr 17 04:57:38 UTC 2018


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

New commits:
commit 4d2ff5d67fae659d8a7f0adeeea6514fd5db921d
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Mon Apr 16 12:46:00 2018 +0100

    MoveErrorMarkTo already sets the m_nErrorStart and m_nErrorEnd
    
    Change-Id: I1016a0e6787af7bbf4415356ae565ffc9c1ab0ef
    Reviewed-on: https://gerrit.libreoffice.org/52967
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 4de13ce682b0..5e7537d9509c 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -1593,9 +1593,7 @@ bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, const css
     //if an attrib has been found search for the end of the error string
     if(aCursor.GetIndex() < nTextLen)
     {
-        m_nErrorStart = aCursor.GetIndex();
-        m_nErrorEnd = pNextError->GetEnd();
-        MoveErrorMarkTo(m_nErrorStart, m_nErrorEnd, bGrammarError);
+        MoveErrorMarkTo(aCursor.GetIndex(), pNextError->GetEnd(), bGrammarError);
         bRet = true;
         //add an undo action
         SpellUndoAction_Impl* pAction = new SpellUndoAction_Impl(


More information about the Libreoffice-commits mailing list