diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-05 18:40:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-06 11:47:10 +0100 |
commit | 6fc73b528fb0203f2469a42928e75d1de77b2624 (patch) | |
tree | b482e8670c59212c9bad1ef029ead3f620644017 /sw | |
parent | 98e90b72778014921e69680915716ea44c97fa53 (diff) |
check widget existance to detect we're disposed
Change-Id: I0c925206a941e799e692cfae7dcd8efa0697a39e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112031
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/sidebar/PageFooterPanel.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/sidebar/PageHeaderPanel.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/sidebar/PageStylesPanel.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/sidebar/PageFooterPanel.cxx b/sw/source/uibase/sidebar/PageFooterPanel.cxx index d4a909cbd88d..0cc1037a829f 100644 --- a/sw/source/uibase/sidebar/PageFooterPanel.cxx +++ b/sw/source/uibase/sidebar/PageFooterPanel.cxx @@ -195,7 +195,7 @@ void PageFooterPanel::NotifyItemUpdate( const SfxItemState eState, const SfxPoolItem* pState) { - if (IsDisposed()) + if (!mxFooterToggle) //disposed return; switch(nSid) diff --git a/sw/source/uibase/sidebar/PageHeaderPanel.cxx b/sw/source/uibase/sidebar/PageHeaderPanel.cxx index ae3f4680d9a4..c47084d14371 100644 --- a/sw/source/uibase/sidebar/PageHeaderPanel.cxx +++ b/sw/source/uibase/sidebar/PageHeaderPanel.cxx @@ -197,7 +197,7 @@ void PageHeaderPanel::NotifyItemUpdate( const SfxItemState eState, const SfxPoolItem* pState) { - if (IsDisposed()) + if (!mxHeaderToggle) //disposed return; switch(nSid) diff --git a/sw/source/uibase/sidebar/PageStylesPanel.cxx b/sw/source/uibase/sidebar/PageStylesPanel.cxx index 071d56f2fbdd..8f4c8d88adb1 100644 --- a/sw/source/uibase/sidebar/PageStylesPanel.cxx +++ b/sw/source/uibase/sidebar/PageStylesPanel.cxx @@ -325,7 +325,7 @@ void PageStylesPanel::NotifyItemUpdate( const SfxItemState eState, const SfxPoolItem* pState) { - if(IsDisposed()) + if (!mxColumnCount) //disposed return; switch(nSid) |