Kaydet (Commit) 4d2ff5d6 authored tarafından Mike Kaganski's avatar Mike Kaganski

MoveErrorMarkTo already sets the m_nErrorStart and m_nErrorEnd

Change-Id: I1016a0e6787af7bbf4415356ae565ffc9c1ab0ef
Reviewed-on: https://gerrit.libreoffice.org/52967Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 8de0ab93
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment