[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Tue Jan 20 12:33:25 PST 2015


 sw/source/core/unocore/unoparagraph.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 24c7c11cd112d33014653166c6d5b3d012114834
Author: Caolán McNamara <caolanm at 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 <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at 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);
     }


More information about the Libreoffice-commits mailing list