VISU::ColoredPrs3d_i
::RemoveFromStudy()
{
- struct TRemoveFromStudy: public SALOME_Event
+ struct TEvent: public SALOME_Event
{
VISU::ColoredPrs3d_i* myRemovable;
- TRemoveFromStudy(VISU::ColoredPrs3d_i* theRemovable):
+
+ TEvent(VISU::ColoredPrs3d_i* theRemovable):
myRemovable(theRemovable)
{}
Execute()
{
SALOMEDS::SObject_var aSObject = myRemovable->GetSObject();
+
if(!CORBA::is_nil(aSObject.in()))
VISU::RemoveFromStudy(aSObject,false);
+
myRemovable->TSuperClass::RemoveFromStudy();
}
};
- ProcessVoidEvent(new TRemoveFromStudy(this));
+ ProcessVoidEvent(new TEvent(this));
}
if(!IsRangeFixed() && theReInit)
SetSourceRange();
- GetCResult()->ConnectObserver(this, myResultConnection);
+ if(GetPublishInStudyMode() != EDoNotPublish)
+ GetCResult()->ConnectObserver(this, myResultConnection);
myPreviousEntity = myEntity;
myPreviousFieldName = myFieldName;