From 30b87226c839173b9ca638672cf8a54d774aef4c Mon Sep 17 00:00:00 2001 From: dmv Date: Thu, 17 Apr 2008 13:07:42 +0000 Subject: [PATCH] NPAL 19577 GetInPlace on compound does not work with Edge --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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++) -- 2.30.2