Salome HOME
An attempt of porting to current OCCT.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Boolean.cpp
index 64dcb89497206d838606d3d604baafe6d84f9c79..7ef54d5d6be0032e4e8401503ef55ca36c8f6acc 100644 (file)
@@ -86,9 +86,14 @@ void GeomAlgoAPI_Boolean::build(const ListOfShape& theObjects,
 
   // Building and getting result.
   aBuilder->Perform();
+#ifdef USE_OCCT_720
+  if (aBuilder->HasErrors())
+    return;
+#else
   if(aBuilder->ErrorStatus() != 0) {
     return;
   }
+#endif
   TopoDS_Shape aResult = aBuilder->Shape();
 
   if(aResult.ShapeType() == TopAbs_COMPOUND) {