From: apo Date: Sat, 28 Apr 2007 05:13:23 +0000 (+0000) Subject: To remove icon on the presentation destroing X-Git-Tag: mergeto_BR_Dev_For_4_0_21May07~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c9a420bb5fff2eb1113c48f4e4fc2aa9a11f2c3c;p=modules%2Fvisu.git To remove icon on the presentation destroing --- diff --git a/src/VISU_I/VISU_Mesh_i.cc b/src/VISU_I/VISU_Mesh_i.cc index 3d7f8c04..9504d29b 100644 --- a/src/VISU_I/VISU_Mesh_i.cc +++ b/src/VISU_I/VISU_Mesh_i.cc @@ -301,6 +301,10 @@ VISU::Mesh_i } }; + // Unset icon + SALOMEDS::StudyBuilder_var aStudyBuilder = GetStudyDocument()->NewBuilder(); + aStudyBuilder->RemoveAttribute(GetSObject(), "AttributePixMap"); + ProcessVoidEvent(new TRemoveFromStudy(this)); }