From ae70a0ad53c1c04f535d437a753afb1edb997e9c Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Fri, 13 Oct 2000 11:02:25 +0000 Subject: no hide/show in setComponentWindow; do it in loadFinished/Cancelled --- framework/source/services/frame.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 530a06df152d..42431233b8a5 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -2,9 +2,9 @@ * * $RCSfile: frame.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: as $ $Date: 2000-10-12 10:49:55 $ + * last change: $Author: mba $ $Date: 2000-10-13 12:02:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1879,16 +1879,12 @@ void Frame::impl_setComponentWindow( const Reference< XWindow >& xWindow ) m_xComponentWindow = xWindow; // Set correct size before showing the window. impl_resizeComponentWindow(); - if ( m_xComponentWindow.is() == sal_True ) - { - m_xComponentWindow->setVisible( sal_True ); - } + // Destroy old window. if ( xOld.is() == sal_True ) { // All VclComponents are XComponents; so call dispose before discarding // a Reference< XVclComponent >, because this frame is the owner of the Component. - xOld->setVisible( sal_False ); xOld->dispose(); } } -- cgit