]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To remove icon on the presentation destroing
authorapo <apo@opencascade.com>
Sat, 28 Apr 2007 05:13:23 +0000 (05:13 +0000)
committerapo <apo@opencascade.com>
Sat, 28 Apr 2007 05:13:23 +0000 (05:13 +0000)
src/VISU_I/VISU_Mesh_i.cc

index 3d7f8c04bfe709d63ca11231e8334ab9d5cc9e53..9504d29b6724fce7bf39e6bd0626ae36ac34f23f 100644 (file)
@@ -301,6 +301,10 @@ VISU::Mesh_i
     }
   };
 
+  // Unset icon
+  SALOMEDS::StudyBuilder_var aStudyBuilder = GetStudyDocument()->NewBuilder();
+  aStudyBuilder->RemoveAttribute(GetSObject(), "AttributePixMap");
+
   ProcessVoidEvent(new TRemoveFromStudy(this));
 }