summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx
index 1270e09f92d4..6c3c5498b667 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -36,8 +36,8 @@ using ::com::sun::star::frame::XFrame;
SvxHlinkCtrl::SvxHlinkCtrl( sal_uInt16 _nId, SfxBindings & rBindings, SvxHpLinkDlg* pDlg )
-: SfxControllerItem ( _nId, rBindings )
- ,aRdOnlyForwarder ( SID_READONLY_MODE, *this )
+ : SfxControllerItem ( _nId, rBindings )
+ , aRdOnlyForwarder ( SID_READONLY_MODE, *this )
{
pParent = pDlg;
}
@@ -45,7 +45,7 @@ SvxHlinkCtrl::SvxHlinkCtrl( sal_uInt16 _nId, SfxBindings & rBindings, SvxHpLinkD
void SvxHlinkCtrl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState )
{
- if ( eState == SfxItemState::DEFAULT )
+ if ( eState == SfxItemState::DEFAULT && !pParent->IsDisposed() )
{
switch ( nSID )
{
@@ -169,6 +169,8 @@ void SvxHpLinkDlg::dispose()
delete mpItemSet;
mpItemSet = NULL;
+ maCtrl.dispose();
+
IconChoiceDialog::dispose();
}