Salome HOME
Fix for crash in Object Browser when object was deleted but message not sent
[modules/shaper.git] / src / GeomAPI / GeomAPI_Face.cpp
index b9dbd45df2f45bf8127e0b0d8f18a20ff43d9dfa..b569598357b982526ca0221c1332289ac200bbfb 100644 (file)
@@ -66,7 +66,7 @@ bool GeomAPI_Face::isPlanar() const
   const TopoDS_Shape& aShape = const_cast<GeomAPI_Face*>(this)->impl<TopoDS_Shape>();
   Handle(Geom_Surface) aSurf = BRep_Tool::Surface(TopoDS::Face(aShape));
   GeomLib_IsPlanarSurface isPlanar(aSurf);
-  return isPlanar.IsPlanar();
+  return isPlanar.IsPlanar() == Standard_True;
 }
 
 std::shared_ptr<GeomAPI_Pln> GeomAPI_Face::getPlane() const