use more SwPosition constructor
part of the process of hiding the internals of SwPosition Change-Id: I074f72d9bd2bac82b71cdcc7cdf165f07417dd8e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141140 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
b9b184b3d4
commit
495788cedd
@@ -2021,10 +2021,9 @@ bool SwDoc::MoveParagraphImpl(SwPaM& rPam, SwNodeOffset const nOffset,
|
||||
SwRedlineTable::size_type nRedlPos = getIDocumentRedlineAccess().GetRedlinePos( pStt->GetNode(), RedlineType::Delete );
|
||||
if( SwRedlineTable::npos != nRedlPos )
|
||||
{
|
||||
SwPosition aStPos( *pStt ), aEndPos( *pEnd );
|
||||
aStPos.nContent = 0;
|
||||
SwContentNode* pCNd = pEnd->GetNode().GetContentNode();
|
||||
aEndPos.nContent = pCNd ? pCNd->Len() : 1;
|
||||
SwPosition aStPos( pStt->GetNode() );
|
||||
SwPosition aEndPos( pEnd->GetNode(), pCNd, pCNd ? pCNd->Len() : 1 );
|
||||
bool bCheckDel = true;
|
||||
|
||||
// There is a some Redline Delete Object for the range
|
||||
|
||||
Reference in New Issue
Block a user