diff options
Diffstat (limited to 'sc/source/ui/dbgui/PivotLayoutTreeListBase.cxx')
-rw-r--r-- | sc/source/ui/dbgui/PivotLayoutTreeListBase.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListBase.cxx b/sc/source/ui/dbgui/PivotLayoutTreeListBase.cxx index e0423626febc..99bb77b0c742 100644 --- a/sc/source/ui/dbgui/PivotLayoutTreeListBase.cxx +++ b/sc/source/ui/dbgui/PivotLayoutTreeListBase.cxx @@ -28,7 +28,15 @@ ScPivotLayoutTreeListBase::ScPivotLayoutTreeListBase(vcl::Window* pParent, WinBi } ScPivotLayoutTreeListBase::~ScPivotLayoutTreeListBase() -{} +{ + disposeOnce(); +} + +void ScPivotLayoutTreeListBase::dispose() +{ + mpParent.clear(); + SvTreeListBox::dispose(); +} void ScPivotLayoutTreeListBase::Setup(ScPivotLayoutDialog* pParent) { @@ -126,7 +134,7 @@ void ScPivotLayoutTreeListBase::GetFocus() if (pEntry) InsertEntryForSourceTarget(pEntry, NULL); - if (mpParent->mpPreviouslyFocusedListBox != NULL) + if (mpParent->mpPreviouslyFocusedListBox != nullptr) mpParent->mpPreviouslyFocusedListBox->GrabFocus(); } |