summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Snelders <programming@ertai.nl>2012-12-03 22:49:37 +0100
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-12-13 01:34:04 -0500
commit417e10b3714c3106fb7a602d91c174aefff32763 (patch)
treeff1b4cebe6494c06d4afc28de35b809ae0ad3fde
parentdc709ddc8267ac594f7c9e7f70189e9a33a413f4 (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> Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
-rw-r--r--sfx2/source/dialog/taskpane.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index fa73b7523b2e..ae67a6461a36 100644
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -956,15 +956,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();
}