]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug GVIEW10225
authorapo <apo@opencascade.com>
Thu, 12 Jan 2006 09:41:34 +0000 (09:41 +0000)
committerapo <apo@opencascade.com>
Thu, 12 Jan 2006 09:41:34 +0000 (09:41 +0000)
   Suspended highlight after removal of nodes

src/SVTK/SVTK_Actor.cxx

index 56a9768e8f0a6cb1b2f25592d1a644764ef715ce..f4331a4c9501e2fdacb610920516b91bcd044ae8 100644 (file)
@@ -114,7 +114,8 @@ SVTK_Actor
 ::MapCells(SALOME_Actor* theMapActor,
           const TColStd_IndexedMapOfInteger& theMapIndex)
 {
-  myUnstructuredGrid->Reset();
+  myUnstructuredGrid->Initialize();
+  myUnstructuredGrid->Allocate();
 
   vtkDataSet *aSourceDataSet = theMapActor->GetInput();
   CopyPoints(GetSource(),aSourceDataSet);
@@ -142,7 +143,9 @@ SVTK_Actor
 ::MapPoints(SALOME_Actor* theMapActor,
            const TColStd_IndexedMapOfInteger& theMapIndex)
 {
-  myUnstructuredGrid->Reset();
+  myUnstructuredGrid->Initialize();
+  myUnstructuredGrid->Allocate();
+
   if(int aNbOfParts = theMapIndex.Extent()){
     vtkPoints *aPoints = vtkPoints::New();
     aPoints->SetNumberOfPoints(aNbOfParts);
@@ -169,7 +172,8 @@ SVTK_Actor
 ::MapEdge(SALOME_Actor* theMapActor,
          const TColStd_IndexedMapOfInteger& theMapIndex)
 {
-  myUnstructuredGrid->Reset();
+  myUnstructuredGrid->Initialize();
+  myUnstructuredGrid->Allocate();
 
   vtkDataSet *aSourceDataSet = theMapActor->GetInput();
   CopyPoints(GetSource(),aSourceDataSet);