sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit 232523e1303b3ed6b8f1916a0a28f32b4a258f53 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jun 1 15:28:40 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Jun 1 23:18:52 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/+/135261 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx index 9ecce3226ac7..09c773a1d28a 100644 --- a/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx +++ b/sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx @@ -80,7 +80,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) {