From: apo Date: Thu, 30 Nov 2006 13:51:29 +0000 (+0000) Subject: To implement RemoveFromStudy for ColoredPrs3dCache instances X-Git-Tag: WP1_2_3_05-12-2006_cache_system~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb1ed51ab03726b1723c51ea0225650f17606dac;p=modules%2Fvisu.git To implement RemoveFromStudy for ColoredPrs3dCache instances --- diff --git a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc index ce6206b0..3e7e61da 100644 --- a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc @@ -220,7 +220,12 @@ VISU::ColoredPrs3dCache_i void VISU::ColoredPrs3dCache_i ::RemoveFromStudy() -{} +{ + CORBA::String_var anIOR = GetID(); + SALOMEDS::SObject_var aSObject = GetStudyDocument()->FindObjectIOR(anIOR.in()); + VISU::RemoveFromStudy(aSObject, false, true); + Destroy(); +} std::string VISU::ColoredPrs3dCache_i