mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-16 22:30:37 +05:00
Fix for the Bug IPAL22042 TC5.1.5: File - Exit can not stop application execution.
This commit is contained in:
parent
60f890c923
commit
4f5efb008b
@ -403,6 +403,8 @@ bool GEOM_Engine::RemoveObject(Handle(GEOM_Object) theObject)
|
|||||||
Handle(GEOM_Function) aFunction = theObject->GetFunction(1);
|
Handle(GEOM_Function) aFunction = theObject->GetFunction(1);
|
||||||
GEOM_ISubShape aSSI (aFunction);
|
GEOM_ISubShape aSSI (aFunction);
|
||||||
Handle(GEOM_Function) aMainShape = aSSI.GetMainShape();
|
Handle(GEOM_Function) aMainShape = aSSI.GetMainShape();
|
||||||
|
//If main shape is not null, then remove
|
||||||
|
if(!aMainShape.IsNull())
|
||||||
aMainShape->RemoveSubShapeReference(aFunction);
|
aMainShape->RemoveSubShapeReference(aFunction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user