]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
SWP12779
authorouv <ouv@opencascade.com>
Tue, 1 Aug 2006 12:45:54 +0000 (12:45 +0000)
committerouv <ouv@opencascade.com>
Tue, 1 Aug 2006 12:45:54 +0000 (12:45 +0000)
src/SVTK/SVTK_RenderWindowInteractor.cxx

index 69d19aa6e3ec9ae6760483a66152ce8cbf6dadf3..647fbc5548f9f6f30cba258da30982a255c21bb8 100644 (file)
@@ -161,7 +161,7 @@ QVTK_RenderWindowInteractor
 {
   // Final initialization just before the widget is displayed
   GetDevice()->SetSize(width(),height());
-  if(!GetDevice()->GetInitialized()){
+  if(!GetDevice()->GetInitialized() && GetDevice()->GetRenderWindow()){
     GetDevice()->Initialize();
     GetDevice()->ConfigureEvent();
   }