]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis agy/evol8193
authorvsr <vsr@opencascade.com>
Wed, 5 Nov 2014 12:09:19 +0000 (15:09 +0300)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 28 Nov 2014 14:21:29 +0000 (15:21 +0100)
src/PVViewer/PVViewer_ViewWindow.cxx

index c7fff08a2c288aeb1f4a78f73de25de840b4c2ad..bdb1edfa08ad740e511704621ab6f1b53de0b148 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "PVViewer_ViewWindow.h"
 #include "PVViewer_ViewManager.h"
+#include "PVViewer_ViewModel.h"
 #include "PVViewer_GUIElements.h"
 
 #include <SUIT_ViewManager.h>
@@ -46,6 +47,7 @@ PVViewer_ViewWindow::PVViewer_ViewWindow( SUIT_Desktop* theDesktop, PVViewer_Vie
   : SUIT_ViewWindow( theDesktop ), myPVMgr( 0 )
 {
   myModel = theModel;
+  setViewManager(myModel->getViewManager());
   myPVMgr = qobject_cast<pqTabbedMultiViewWidget*>(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET"));
   if (myPVMgr) {
     myPVMgr->setParent( this );