From: ouv Date: Tue, 18 Mar 2014 09:58:07 +0000 (+0400) Subject: To make it possible to create SVTK_ViewWindow without active SUIT session/application. X-Git-Tag: CTH_1_9_3_WIN~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30492c7f8a5228401e193d36d6dd64684f121569;p=modules%2Fgui.git To make it possible to create SVTK_ViewWindow without active SUIT session/application. --- 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();