diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-01 07:51:04 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-02 00:49:35 +0200 |
commit | c6f0b726e605df49074e2ddc668fa4c6f070c170 (patch) | |
tree | c937f1ecb628311f379b21c5bc67859120643e4e | |
parent | 480ca7434a330b2678f9ef287cffd6d9cf27bed5 (diff) |
redline dialog handle post-dispose event bits.
Change-Id: I5739c0ac6529b1c51866d81c30df4a185ffa6ecd
-rw-r--r-- | sw/source/uibase/misc/redlndlg.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index 49be7d83c865..411febaeaae1 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -1258,16 +1258,15 @@ SwRedlineAcceptPanel::~SwRedlineAcceptPanel() void SwRedlineAcceptPanel::dispose() { delete mpImplDlg; + mpImplDlg = NULL; PanelLayout::dispose(); } void SwRedlineAcceptPanel::Notify(SfxBroadcaster& /*rBC*/, const SfxHint& rHint) { const SfxSimpleHint *pHint = dynamic_cast<const SfxSimpleHint*>(&rHint); - if (pHint && pHint->GetId() == SFX_HINT_DOCCHANGED) - { + if (mpImplDlg && pHint && pHint->GetId() == SFX_HINT_DOCCHANGED) mpImplDlg->Activate(); - } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |