]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020210: EDF SMESH 976: Update of a smesh group after modification of the associated...
authoreap <eap@opencascade.com>
Fri, 3 Apr 2009 14:31:44 +0000 (14:31 +0000)
committereap <eap@opencascade.com>
Fri, 3 Apr 2009 14:31:44 +0000 (14:31 +0000)
  use gen->SetPixMap()

src/SMESH_I/SMESH_MeshEditor_i.cxx

index 3e9a3fca74e5c21620e088b0d9ca2aabdf79dbc8..9dc0758a4c82530cfa24ab7581a1e51c78206d7a 100644 (file)
@@ -3592,11 +3592,7 @@ SMESH::SMESH_Mesh_ptr SMESH_MeshEditor_i::makeMesh(const char* theMeshName)
   SALOMEDS::Study_var study = gen->GetCurrentStudy();
   SALOMEDS::SObject_var meshSO = gen->ObjectToSObject( study, mesh );
   gen->SetName( meshSO, theMeshName, "Mesh" );
-
-  SALOMEDS::StudyBuilder_var builder = study->NewBuilder();
-  SALOMEDS::GenericAttribute_var anAttr
-    = builder->FindOrCreateAttribute( meshSO, "AttributePixMap" );
-  SALOMEDS::AttributePixMap::_narrow( anAttr )->SetPixMap( "ICON_SMESH_TREE_MESH_IMPORTED" );
+  gen->SetPixMap( meshSO, "ICON_SMESH_TREE_MESH_IMPORTED");
 
   return mesh._retn();
 }