From b13c4d7bfd3d31806fde6cdbd5ab4a336f92b18c Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 5 Nov 2014 15:09:19 +0300 Subject: [PATCH] 0022800: EDF 9132 PARAVIS: Sigsegv when using pvviewer outside paravis --- src/PVViewer/PVViewer_ViewWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVViewer/PVViewer_ViewWindow.cxx b/src/PVViewer/PVViewer_ViewWindow.cxx index c7fff08a2..bdb1edfa0 100644 --- a/src/PVViewer/PVViewer_ViewWindow.cxx +++ b/src/PVViewer/PVViewer_ViewWindow.cxx @@ -22,6 +22,7 @@ #include "PVViewer_ViewWindow.h" #include "PVViewer_ViewManager.h" +#include "PVViewer_ViewModel.h" #include "PVViewer_GUIElements.h" #include @@ -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(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET")); if (myPVMgr) { myPVMgr->setParent( this ); -- 2.39.2