diff options
-rw-r--r-- | sw/source/uibase/sidebar/WriterInspectorTextPanel.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |