]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To make it possible to create SVTK_ViewWindow without active SUIT session/application.
authorouv <ouv@opencascade.com>
Tue, 18 Mar 2014 09:58:07 +0000 (13:58 +0400)
committerouv <ouv@opencascade.com>
Tue, 18 Mar 2014 09:58:07 +0000 (13:58 +0400)
src/SVTK/SVTK_ViewWindow.cxx

index b029798e78ceea12ae518d8f9907e77cc8f3f8cb..06c666c9c8fdf9c9aa45407a5c0d3b03c69ecd68 100755 (executable)
@@ -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();