From: apo Date: Thu, 12 Jan 2006 09:41:34 +0000 (+0000) Subject: Fix for Bug GVIEW10225 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=37e7d0edf621e1b45547e4271b01ebb8a98583c2;p=modules%2Fgui.git Fix for Bug GVIEW10225 Suspended highlight after removal of nodes --- diff --git a/src/SVTK/SVTK_Actor.cxx b/src/SVTK/SVTK_Actor.cxx index 56a9768e8..f4331a4c9 100644 --- a/src/SVTK/SVTK_Actor.cxx +++ b/src/SVTK/SVTK_Actor.cxx @@ -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);