From 43d6da691fd23dd788f192f3e5f80676a7acc220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 17 Nov 2014 12:08:40 +0000 Subject: [PATCH] coverity#1242523 we just need a copy here Change-Id: I238756de13a5bd2711538cbd92e78bbae8fced22 --- sw/source/filter/xml/xmltbli.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx index e1f2f46f2c8f..9971add2fbcc 100644 --- a/sw/source/filter/xml/xmltbli.cxx +++ b/sw/source/filter/xml/xmltbli.cxx @@ -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 );