0026788: Compiler warnings when OCCT_DEBUG is enabled
[occt.git] / src / BOPTools / BOPTools_AlgoTools2D_1.cxx
index c098f90..14b04d0 100644 (file)
@@ -294,7 +294,8 @@ Standard_Boolean IsToReverse(const TopoDS_Edge& aEold,
   aCnew->D1(aTnew, aP, aVnew);
   aVnew.Normalize(); 
   //
-  aCtx->ProjectPointOnEdge(aP, aEold, aTold);
+  if (!aCtx->ProjectPointOnEdge(aP, aEold, aTold))
+    return Standard_False;
   aCold->D1(aTold, aP, aVold);
   aVold.Normalize(); 
   //