From: dmv Date: Thu, 17 Apr 2008 13:07:42 +0000 (+0000) Subject: NPAL 19577 GetInPlace on compound does not work with Edge X-Git-Tag: V4_1_2rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30b87226c839173b9ca638672cf8a54d774aef4c;p=modules%2Fgeom.git NPAL 19577 GetInPlace on compound does not work with Edge --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index e4487ec49..e3647c3a0 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -2952,6 +2952,11 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::GetInPlace (Handle(GEOM_Object) if ( fabs( aWhat_Mass - aWhere_Mass ) <= Tol_Mass ) break; } + if (aModifiedList.Extent() == 0) { // Not found any Results + SetErrorCode(NOT_FOUND_ANY); + return NULL; + } + aModifiedArray = new TColStd_HArray1OfInteger (1, aModifiedList.Extent()); TColStd_ListIteratorOfListOfInteger anIterModif (aModifiedList); for (Standard_Integer imod = 1; anIterModif.More(); anIterModif.Next(), imod++)