From c9a420bb5fff2eb1113c48f4e4fc2aa9a11f2c3c Mon Sep 17 00:00:00 2001 From: apo Date: Sat, 28 Apr 2007 05:13:23 +0000 Subject: [PATCH] To remove icon on the presentation destroing --- src/VISU_I/VISU_Mesh_i.cc | 4 ++++ 1 file changed, 4 insertions(+) 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)); } -- 2.39.2