From: rnv Date: Thu, 7 Oct 2010 06:40:27 +0000 (+0000) Subject: Fix for the Bug IPAL22042 TC5.1.5: File - Exit can not stop application execution. X-Git-Tag: V5_1_5rc1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f5efb008bcf51fbc2fb09697953ba57de8ea6a7;p=modules%2Fgeom.git Fix for the Bug IPAL22042 TC5.1.5: File - Exit can not stop application execution. --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index b0ea5a0c2..d33196f76 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -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();