cui/source/dialogs/SpellDialog.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 4d2ff5d67fae659d8a7f0adeeea6514fd5db921d Author: Mike Kaganski <mike.kagan...@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 <c...@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kagan...@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( _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits