diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-20 17:43:46 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-01-20 20:32:52 +0000 |
commit | 24c7c11cd112d33014653166c6d5b3d012114834 (patch) | |
tree | 6f0d61f5651f5dbe43cbc17d1d673694755734e2 | |
parent | 4398cc83945de8165e3713fdfa76499c2b3a55fa (diff) |
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 <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | sw/source/core/unocore/unoparagraph.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx index 10f1b3c1c4d1..aa7bc1a70960 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); } |