sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit da250c36d43ab96e985b263f41a199b151cd34df
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Jun 1 15:28:40 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Jun 1 21:04:04 2022 +0200

    Related: tdf#149408 inspector crash with a writer OLE inside calc
    
    also on *leaving* the OLE mode
    
    Change-Id: I97e9cd7cd4dc1803c4bc40865a08a194819c9ff2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135244
    Tested-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx 
b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
index b043852d309e..530f72cdc923 100644
--- a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
+++ b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx
@@ -79,7 +79,11 @@ 
WriterInspectorTextPanel::WriterInspectorTextPanel(weld::Widget* pParent)
     updateEntries(aStore, m_nParIdx);
 }
 
-WriterInspectorTextPanel::~WriterInspectorTextPanel() { 
m_pShell->SetChgLnk(m_oldLink); }
+WriterInspectorTextPanel::~WriterInspectorTextPanel()
+{
+    if (m_pShell)
+        m_pShell->SetChgLnk(m_oldLink);
+}
 
 static OUString PropertyNametoRID(const OUString& rName)
 {

Reply via email to