]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Patch on Bug GVIEW10227
authorapo <apo@opencascade.com>
Tue, 18 Oct 2005 15:31:05 +0000 (15:31 +0000)
committerapo <apo@opencascade.com>
Tue, 18 Oct 2005 15:31:05 +0000 (15:31 +0000)
  Highlighted group of elements remains in 3D viewer.

src/SVTK/SVTK_ViewWindow.cxx

index 187b42f785113afab81aa648051f90ea3b1fc948..2c49a4e7ab81bbe48b4bf55e1d214d8a90f2cf52 100755 (executable)
@@ -63,14 +63,14 @@ SVTK_ViewWindow
 
     SVTK_Selector* aSelector = SVTK_Selector::New();
 
-    SVTK_Renderer* aRenderer = SVTK_Renderer::New();
-    aRenderer->Initialize(anIteractor->GetDevice(),aSelector);
-
     SVTK_GenericRenderWindowInteractor* aDevice = 
       SVTK_GenericRenderWindowInteractor::New();
     aDevice->SetRenderWidget(anIteractor);
     aDevice->SetSelector(aSelector);
 
+    SVTK_Renderer* aRenderer = SVTK_Renderer::New();
+    aRenderer->Initialize(aDevice,aSelector);
+
     anIteractor->Initialize(aDevice,aRenderer,aSelector);
 
     aDevice->Delete();