From 5ec50565b35f3a776dffb7afc33a985e5ea6409f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 2 Oct 2020 20:26:50 +0100 Subject: MakeCopy family never called with a null SwDoc* arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4ba4569a529425a5e92fb3f82990e34ae4db3228 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103877 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/filter/basflt/shellio.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/filter') diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx index 373d552f374a..88e6d04459cd 100644 --- a/sw/source/filter/basflt/shellio.cxx +++ b/sw/source/filter/basflt/shellio.cxx @@ -755,7 +755,7 @@ ErrCode SwWriter::Write( WriterRef const & rxWriter, const OUString* pRealFileNa SwContentNode *pNd = aIdx.GetNode().GetContentNode(); OSL_ENSURE( pNd, "Node not found" ); SwPosition aPos( aIdx, SwIndex( pNd ) ); - pTableNd->GetTable().MakeCopy( xDoc.get(), aPos, aBoxes ); + pTableNd->GetTable().MakeCopy( *xDoc, aPos, aBoxes ); } if( !m_bWriteAll && ( m_pShell || m_pOutPam )) -- cgit