From 4d2ff5d67fae659d8a7f0adeeea6514fd5db921d Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 16 Apr 2018 12:46:00 +0100 Subject: MoveErrorMarkTo already sets the m_nErrorStart and m_nErrorEnd Change-Id: I1016a0e6787af7bbf4415356ae565ffc9c1ab0ef Reviewed-on: https://gerrit.libreoffice.org/52967 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- cui/source/dialogs/SpellDialog.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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( -- cgit