0025769: Replace BOPCol_Array1 with NCollection_Vector
[occt.git] / src / QANewModTopOpe / QANewModTopOpe_Tools.cxx
index aece47c..6470325 100644 (file)
@@ -453,6 +453,11 @@ Standard_Boolean QANewModTopOpe_Tools::EdgeSectionAncestors(const BOPAlgo_PPaveF
   nb = pDS->NbSourceShapes();
 
   nE = pDS->Index(theEdge);
+  //
+  if (nE<0) {
+    return Standard_False;
+  }
+  //
   const BOPDS_ListOfPaveBlock& aLPB1 = pDS->PaveBlocks(nE);
   if (!aLPB1.Extent()) {
     return Standard_False;