Salome HOME
Porting to DEV version of OCCT.
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ShapeDriver.cxx
index b7947fdf7d0ae0c24ec24efd923474dd6149834d..00ff9dde01c6b667e9828d95b174309fc976b6ee 100644 (file)
@@ -770,7 +770,11 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(LOGBOOK& log) const
     aMV.SetArguments(aLS);
     aMV.SetIntersect(aCI.GetIsIntersect());
     aMV.Perform();
+#if OCC_VERSION_LARGE > 0x07010000
+    if (aMV.HasErrors()) return 0;
+#else
     if (aMV.ErrorStatus()) return 0;
+#endif
 
     aShape = aMV.Shape();
   }