]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
NPAL 19577 GetInPlace on compound does not work with Edge V4_1_2rc1
authordmv <dmv@opencascade.com>
Thu, 17 Apr 2008 13:07:42 +0000 (13:07 +0000)
committerdmv <dmv@opencascade.com>
Thu, 17 Apr 2008 13:07:42 +0000 (13:07 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index e4487ec49d32d906c096d6df304ebc8a995a4a40..e3647c3a01aea35cbcafa3046a79216bec46c1ed 100644 (file)
@@ -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++)