summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-04-16 12:46:00 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2018-04-17 06:57:09 +0200
commit4d2ff5d67fae659d8a7f0adeeea6514fd5db921d (patch)
treeb37a141cfd689fcdc4e568f7af7ffc17bce02caa /cui
parent8de0ab93601e3e530b6daff1f255a6a0a82bfce4 (diff)
MoveErrorMarkTo already sets the m_nErrorStart and m_nErrorEnd
Change-Id: I1016a0e6787af7bbf4415356ae565ffc9c1ab0ef Reviewed-on: https://gerrit.libreoffice.org/52967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx4
1 files changed, 1 insertions, 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(