summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/docnum.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index 7462b608df99..5975288c6cd7 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -1582,15 +1582,9 @@ static bool lcl_GotoNextPrevNum( SwPosition& rPos, bool bNext,
if( !bRet && !bOverUpper && pLast ) // do not iterate over higher numbers, but still to the end
{
if( bNext )
- {
- rPos.nNode = aIdx;
- if( aIdx.GetNode().IsContentNode() )
- rPos.nContent.Assign( aIdx.GetNode().GetContentNode(), 0 );
- }
+ rPos.Assign(aIdx);
else
- {
rPos.Assign( *pLast );
- }
bRet = true;
}
@@ -2376,9 +2370,10 @@ bool SwDoc::MoveParagraphImpl(SwPaM& rPam, SwNodeOffset const nOffset,
}
if( pREnd->GetNodeIndex() != nRedlEndNd )
{
- pREnd->nNode = nRedlEndNd;
+ pREnd->Assign(nRedlEndNd);
SwContentNode* pCNd = pREnd->GetNode().GetContentNode();
- pREnd->nContent.Assign( pCNd, pCNd ? pCNd->Len() : 0 );
+ if(pCNd)
+ pREnd->SetContent( pCNd->Len() );
}
}