sfx2/source/dialog/taskpane.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 8a4db529db50dca5df7b56f770fce2da7725fdda Author: Rob Snelders <programm...@ertai.nl> Date: Mon Dec 3 22:49:37 2012 +0100 fdo#31309 Taskpane items visibility can't be restored Change-Id: I9959b8e0a21252638a4f39f88bf5049ea905f4bb Reviewed-on: https://gerrit.libreoffice.org/1231 Reviewed-by: Lennard Wasserthal <wassert...@nefkom.net> Reviewed-by: Kohei Yoshida <kohei.yosh...@gmail.com> Tested-by: Kohei Yoshida <kohei.yosh...@gmail.com> diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index a92d27e..cdc6f22 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits