]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
no message
authorstv <stv@opencascade.com>
Tue, 3 Apr 2007 11:09:46 +0000 (11:09 +0000)
committerstv <stv@opencascade.com>
Tue, 3 Apr 2007 11:09:46 +0000 (11:09 +0000)
src/OCCViewer/OCCViewer_ViewWindow.cxx

index 352cd3588ae1db431af4e66eea13f6b108ea1136..499449c63c17753eb87154516f2bbc67acfe2b16 100755 (executable)
@@ -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<OCCViewer_ViewWindow*>( vw );
+  if ( ovw )
+    ovw->onFitAll();
 }
 
 //****************************************************************