From: stv Date: Tue, 3 Apr 2007 11:09:46 +0000 (+0000) Subject: no message X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fc7f63dfbf125df5d574a97b4c37f9df838571fb;p=modules%2Fgui.git no message --- 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(); } //****************************************************************