coverity#1242523 we just need a copy here
Change-Id: I238756de13a5bd2711538cbd92e78bbae8fced22
This commit is contained in:
@@ -706,8 +706,7 @@ void SwXMLTableCellContext_Impl::EndElement()
|
|||||||
OTextCursorHelper *pDstTxtCrsr = reinterpret_cast< OTextCursorHelper * >(
|
OTextCursorHelper *pDstTxtCrsr = reinterpret_cast< OTextCursorHelper * >(
|
||||||
sal::static_int_cast< sal_IntPtr >( xDstCrsrTunnel->getSomething( OTextCursorHelper::getUnoTunnelId() )) );
|
sal::static_int_cast< sal_IntPtr >( xDstCrsrTunnel->getSomething( OTextCursorHelper::getUnoTunnelId() )) );
|
||||||
assert(pDstTxtCrsr && "SwXTextCursor missing");
|
assert(pDstTxtCrsr && "SwXTextCursor missing");
|
||||||
SwPaM aSrcPaM( *pSrcPaM->GetPoint(),
|
SwPaM aSrcPaM(*pSrcPaM->GetMark(), *pSrcPaM->GetPoint());
|
||||||
*pSrcPaM->GetMark() );
|
|
||||||
SwPosition aDstPos( *pDstTxtCrsr->GetPaM()->GetPoint() );
|
SwPosition aDstPos( *pDstTxtCrsr->GetPaM()->GetPoint() );
|
||||||
pDoc->getIDocumentContentOperations().CopyRange( aSrcPaM, aDstPos, false );
|
pDoc->getIDocumentContentOperations().CopyRange( aSrcPaM, aDstPos, false );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user