]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
+ prop->Delete();
authoreap <eap@opencascade.com>
Mon, 17 Sep 2012 10:18:47 +0000 (10:18 +0000)
committereap <eap@opencascade.com>
Mon, 17 Sep 2012 10:18:47 +0000 (10:18 +0000)
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx

index bb931e3ddded41f5968b3ab71fcf4e51a24196a6..7bf81c56cca5918ccbd2a78f177abd3ba273a683 100644 (file)
@@ -1148,13 +1148,13 @@ void SMESHGUI_BaseComputeOp::onShowBadMesh()
       SMESH::MeshPreviewStruct_var aMeshData = gen->GetBadInputElements(myMesh,curSub);
       vtkFloatingPointType aPointSize = SMESH::GetFloat("SMESH:node_size",3);
       vtkFloatingPointType aLineWidth = SMESH::GetFloat("SMESH:element_width",1);
-      // delete property !!!!!!!!!!
       vtkProperty* prop = vtkProperty::New();
       prop->SetLineWidth( aLineWidth * 3 );
       prop->SetPointSize( aPointSize * 3 );
       prop->SetColor( 250, 0, 250 );
       myBadMeshDisplayer->GetActor()->SetProperty( prop );
       myBadMeshDisplayer->SetData( aMeshData._retn() );
+      prop->Delete();
     }
   }
 }