From: ana Date: Tue, 6 Sep 2016 09:34:30 +0000 (+0300) Subject: Fix for "0053112: 'Clone View' does not copy camera position into new viewer" issue. X-Git-Tag: V8_1_0rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f29a638ddeeb39ef49ca946902d6d19fef4c4551;p=modules%2Fgui.git Fix for "0053112: 'Clone View' does not copy camera position into new viewer" issue. --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 52d5c8376..5f7c09b9c 100644 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -24,6 +24,7 @@ // Author : #include "OCCViewer_ViewWindow.h" +#include "OCCViewer_ViewFrame.h" #include "OCCViewer_ViewModel.h" #include "OCCViewer_ViewPort3d.h" #include "OCCViewer_ViewManager.h" @@ -1917,6 +1918,10 @@ void OCCViewer_ViewWindow::onCloneView() SUIT_ViewWindow* vw = myManager->createViewWindow(); //vw->show(); emit viewCloned( vw ); + OCCViewer_ViewWindow* occVw = dynamic_cast (vw); + if(occVw && occVw->getView(OCCViewer_ViewFrame::MAIN_VIEW)) { + occVw->getView(OCCViewer_ViewFrame::MAIN_VIEW)->synchronize(this); + } } /*!