diff options
author | Rob Snelders <programming@ertai.nl> | 2012-12-03 22:49:37 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-12-13 06:25:09 +0000 |
commit | 8a4db529db50dca5df7b56f770fce2da7725fdda (patch) | |
tree | c68bb03aa8ef33ec3ed5315cdf074589e7e4a14b | |
parent | dde234b6955a421d51d2b37e4fc3972c660146f0 (diff) |
fdo#31309 Taskpane items visibility can't be restored
Change-Id: I9959b8e0a21252638a4f39f88bf5049ea905f4bb
Reviewed-on: https://gerrit.libreoffice.org/1231
Reviewed-by: Lennard Wasserthal <Wasserthal@nefkom.net>
Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
-rw-r--r-- | sfx2/source/dialog/taskpane.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index a92d27e0330d..cdc6f22f7bf3 100644 --- a/sfx2/source/dialog/taskpane.cxx +++ b/sfx2/source/dialog/taskpane.cxx @@ -958,15 +958,16 @@ namespace sfx2 TaskPaneController_Impl::~TaskPaneController_Impl() { m_rTaskPane.GetPanelDeck().RemoveListener( *this ); + int i = 0; // remove the panels which are not under the control of the panel deck currently for ( PanelDescriptors::iterator panelPos = m_aPanelRepository.begin(); panelPos != m_aPanelRepository.end(); - ++panelPos + ++panelPos, ++i ) { if ( panelPos->bHidden ) - panelPos->pPanel->Dispose(); + impl_togglePanelVisibility( i ); } m_aPanelRepository.clear(); } |