[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 31 09:02:14 UTC 2021


 sw/source/ui/dbui/mmaddressblockpage.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e7d7b013bc3014b8df78118ca0790bda121af501
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 14:37:15 2021 +0100
Commit:     Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Tue Aug 31 11:01:38 2021 +0200

    tdf#144105 crash after closing edit address block dialog
    
    use RemoveView to call RemoveDragAndDropListeners before shutdown to
    avoid RemoveDragAndDropListeners getting called during dtor and
    calling EditViewCallbacks::GetDropTarget on the destroyed host
    widget controller
    
    Change-Id: I63841b893d37d45cc44a0ffbaa534cf87c407615
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121277
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>

diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index e62f18352f1c..65bdcfbc4030 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -1068,6 +1068,7 @@ void AddressMultiLineEdit::EndDropTarget()
 {
     if (m_xDropTarget.is())
     {
+        m_xEditEngine->RemoveView(m_xEditView.get());
         auto xRealDropTarget = GetDrawingArea()->get_drop_target();
         uno::Reference<css::datatransfer::dnd::XDropTargetListener> xListener(m_xDropTarget, uno::UNO_QUERY);
         xRealDropTarget->removeDropTargetListener(xListener);


More information about the Libreoffice-commits mailing list