diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-29 20:18:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-29 19:19:52 +0000 |
commit | a456034cb2472ebb98217be223b73f5653c9e560 (patch) | |
tree | a5ecb5a0e7bb88631b3a7094104027e8c3f62931 | |
parent | b93263305bcb2a450c72a54255eb7f9f6fb08cae (diff) |
VclPtr: tdf#91396 crash after tool options and sidebar switching
Change-Id: I86c23ffc08c8dec275608d9bc0bbe5eaf7ce0993
Reviewed-on: https://gerrit.libreoffice.org/15985
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index f79b378abc98..d0c72c307a73 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -845,6 +845,7 @@ void SwContentTree::dispose() Clear(); // If applicable erase content types previously. bIsInDrag = false; aUpdTimer.Stop(); + SetActiveShell(0); SvTreeListBox::dispose(); } diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 5c68de1433c5..051081b5210c 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -867,13 +867,13 @@ void SwNavigationPI::dispose() if ( IsBound() ) rBindings.Release(*this); - pPopupWindow.disposeAndClear(); pFloatingWindow.disposeAndClear(); - aContentToolBox.disposeAndClear(); - aGlobalToolBox.disposeAndClear(); - aContentTree.disposeAndClear(); - aGlobalTree.disposeAndClear(); + pPopupWindow.disposeAndClear(); aDocListBox.disposeAndClear(); + aGlobalTree.disposeAndClear(); + aContentTree.disposeAndClear(); + aGlobalToolBox.disposeAndClear(); + aContentToolBox.disposeAndClear(); aPageChgIdle.Stop(); |