From 0b8aa0843b43fcb9abbfe9a60dc793dc85bbdecc Mon Sep 17 00:00:00 2001 From: Carsten Driesner Date: Wed, 19 Sep 2001 07:07:46 +0000 Subject: [PATCH] #92229# Don't show hidden docs inside window menu --- framework/source/classes/menumanager.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx index 29bb755982f4..e5dd7a90ea8f 100644 --- a/framework/source/classes/menumanager.cxx +++ b/framework/source/classes/menumanager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: menumanager.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: mba $ $Date: 2001-08-22 08:11:48 $ + * last change: $Author: cd $ $Date: 2001-09-19 08:07:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -710,8 +710,11 @@ void MenuManager::UpdateSpecialWindowMenu( Menu* pMenu ) nActiveItemId = nItemId; Window* pWin = VCLUnoHelper::GetWindow( xTask->getContainerWindow() ); - aNewWindowListVector.push_back( pWin->GetText() ); - ++nItemId; + if ( pWin && pWin->IsVisible() ) + { + aNewWindowListVector.push_back( pWin->GetText() ); + ++nItemId; + } } } }