sw/source/core/unocore/unoparagraph.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit 24c7c11cd112d33014653166c6d5b3d012114834 Author: Caolán McNamara <caol...@redhat.com> Date: Tue Jan 20 17:43:46 2015 +0000 fix SwIndexReg::~SwIndexReg assert in fdo68332-2.docx SwParaSelection sets a mark on the cursor, but there is no need to do that. DelFullPara will delete the SwTxtNode anyway. Change-Id: I99b8dd637bd4d2b49a555e147514a2def19fa0bf Reviewed-on: https://gerrit.libreoffice.org/14054 Reviewed-by: Michael Stahl <mst...@redhat.com> Tested-by: Michael Stahl <mst...@redhat.com> diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx index 10f1b3c..aa7bc1a 100644 --- a/sw/source/core/unocore/unoparagraph.cxx +++ b/sw/source/core/unocore/unoparagraph.cxx @@ -1279,11 +1279,7 @@ void SAL_CALL SwXParagraph::dispose() throw (uno::RuntimeException, std::excepti if (pTxtNode) { SwCursor aCursor( SwPosition( *pTxtNode ), 0, false ); - // select paragraph - { - SwParaSelection aParaSel( aCursor ); - pTxtNode->GetDoc()->getIDocumentContentOperations().DelFullPara(aCursor); - } + pTxtNode->GetDoc()->getIDocumentContentOperations().DelFullPara(aCursor); lang::EventObject const ev(static_cast< ::cppu::OWeakObject&>(*this)); m_pImpl->m_EventListeners.disposeAndClear(ev); }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits