X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FSMESHGUI%2FSMESHGUI_AddMeshElementDlg.cxx;h=87c9b0ba785aa9bebc9a9b641a4087a13880bcf3;hb=02dc428b77903ee875df133369534b7a5fd64644;hp=067f35b9bad716f8de6737f6e9de99818c2f1c37;hpb=519f45e49541ef86004a139b9dccc909927bc406;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx b/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx index 067f35b9b..87c9b0ba7 100644 --- a/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx @@ -229,10 +229,10 @@ namespace SMESH anIds->SetNumberOfIds(1); for (int i = 0, iEnd = theIds.size(); i < iEnd; i++){ anIds->InsertId(0,theIds[i]); - vtkIdType anId = myBallPolyData->InsertNextCell(VTK_POLY_VERTEX,anIds); - double d = theDiameter; - aScalars->SetTuple(anId,&d); - anIds->Reset(); + vtkIdType anId = myBallPolyData->InsertNextCell(VTK_POLY_VERTEX,anIds); + double d = theDiameter; + aScalars->SetTuple(anId,&d); + anIds->Reset(); } anIds->Delete(); @@ -258,7 +258,7 @@ namespace SMESH if (FindVtkViewWindow(myApplication->activeViewManager(), myViewWindow)) { myVTKViewWindow->RemoveActor(myPreviewActor,false,false); myVTKViewWindow->RemoveActor(myFaceOrientation,false,false); - myVTKViewWindow->RemoveActor(myBallActor,false,false); + myVTKViewWindow->RemoveActor(myBallActor,false,false); } myMapper->Delete();