Fix for the Bug IPAL22042 TC5.1.5: File - Exit can not stop application execution.

This commit is contained in:
rnv 2010-10-07 06:40:27 +00:00
parent 60f890c923
commit 4f5efb008b

View File

@ -403,7 +403,9 @@ bool GEOM_Engine::RemoveObject(Handle(GEOM_Object) theObject)
Handle(GEOM_Function) aFunction = theObject->GetFunction(1);
GEOM_ISubShape aSSI (aFunction);
Handle(GEOM_Function) aMainShape = aSSI.GetMainShape();
aMainShape->RemoveSubShapeReference(aFunction);
//If main shape is not null, then remove
if(!aMainShape.IsNull())
aMainShape->RemoveSubShapeReference(aFunction);
}
int nb = theObject->GetNbFunctions();