summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/DocumentContentOperationsManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/DocumentContentOperationsManager.cxx')
-rw-r--r--sw/source/core/doc/DocumentContentOperationsManager.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index 0491adeda901..cad942607c0b 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -4121,14 +4121,14 @@ bool DocumentContentOperationsManager::DeleteRangeImplImpl(SwPaM & rPam)
}
// if the end is not a content node, delete it as well
- sal_uInt32 nEnde = pEnd->nNode.GetIndex();
+ sal_uInt32 nEnd = pEnd->nNode.GetIndex();
if( pCNd == nullptr )
- nEnde++;
+ nEnd++;
- if( aSttIdx != nEnde )
+ if( aSttIdx != nEnd )
{
// delete the Nodes into the NodesArary
- m_rDoc.GetNodes().Delete( aSttIdx, nEnde - aSttIdx.GetIndex() );
+ m_rDoc.GetNodes().Delete( aSttIdx, nEnd - aSttIdx.GetIndex() );
}
// If the Node that contained the Cursor has been deleted,