From: eap Date: Fri, 3 Apr 2009 14:31:37 +0000 (+0000) Subject: 0020210: EDF SMESH 976: Update of a smesh group after modification of the associated... X-Git-Tag: V5_1_2rc1~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=42b21b7e94887a3676d2700658d311a2f8dd1968;p=modules%2Fsmesh.git 0020210: EDF SMESH 976: Update of a smesh group after modification of the associated geom group use gen->SetPixMap() --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 8fb61b896..728bf2be1 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -3874,11 +3874,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(); }