diff options
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 4fb3dba9c914..8950e62a78d1 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -126,8 +126,7 @@ void SwEditShell::Insert2(const OUString &rStr, const bool bForceExpandHints ) if ( rNode.IsTextNode() ) { SwIndex& rIdx = pTmpCrsr->GetPoint()->nContent; - sal_Int32 nPos = rIdx.GetIndex(); - sal_Int32 nPrevPos = nPos; + sal_Int32 nPrevPos = rIdx.GetIndex(); if ( nPrevPos ) --nPrevPos; |