coverity#1242523 we just need a copy here

Change-Id: I238756de13a5bd2711538cbd92e78bbae8fced22
This commit is contained in:
Caolán McNamara
2014-11-17 12:08:40 +00:00
parent 0f83c393d3
commit 43d6da691f

View File

@@ -706,8 +706,7 @@ void SwXMLTableCellContext_Impl::EndElement()
OTextCursorHelper *pDstTxtCrsr = reinterpret_cast< OTextCursorHelper * >(
sal::static_int_cast< sal_IntPtr >( xDstCrsrTunnel->getSomething( OTextCursorHelper::getUnoTunnelId() )) );
assert(pDstTxtCrsr && "SwXTextCursor missing");
SwPaM aSrcPaM( *pSrcPaM->GetPoint(),
*pSrcPaM->GetMark() );
SwPaM aSrcPaM(*pSrcPaM->GetMark(), *pSrcPaM->GetPoint());
SwPosition aDstPos( *pDstTxtCrsr->GetPaM()->GetPoint() );
pDoc->getIDocumentContentOperations().CopyRange( aSrcPaM, aDstPos, false );