From 30492c7f8a5228401e193d36d6dd64684f121569 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 18 Mar 2014 13:58:07 +0400 Subject: [PATCH] To make it possible to create SVTK_ViewWindow without active SUIT session/application. --- src/SVTK/SVTK_ViewWindow.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index b029798e7..06c666c9c 100755 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -191,7 +191,8 @@ void SVTK_ViewWindow::Initialize(SVTK_ViewModelBase* theModel) //myView = new SVTK_View(myMainWindow); myView = new SVTK_View(this); - Initialize(myView,theModel); + if(theModel) + Initialize(myView,theModel); myInteractor->getRenderWindow()->Render(); onResetView(); -- 2.39.2