From fc7f63dfbf125df5d574a97b4c37f9df838571fb Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 3 Apr 2007 11:09:46 +0000 Subject: [PATCH] no message --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 352cd3588..499449c63 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -820,7 +820,15 @@ void OCCViewer_ViewWindow::onFitAll() void OCCViewer_ViewWindow::onCloneView() { SUIT_ViewWindow* vw = myManager->createViewWindow(); + if ( !vw ) + return; + + vw->resize( size() ); vw->show(); + + OCCViewer_ViewWindow* ovw = ::qt_cast( vw ); + if ( ovw ) + ovw->onFitAll(); } //**************************************************************** -- 2.39.2