Salome HOME
Update viewer on delete an item
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_HorizontalFace.cpp
index c602e421e7e872ce5964b620c561eb78ecf73d6b..ce1ec8b3f090779e97a7bca2786afcb0a34d1ecb 100644 (file)
@@ -27,10 +27,10 @@ bool FiltersPlugin_HorizontalFace::isSupported(GeomAPI_Shape::ShapeType theType)
   return theType == GeomAPI_Shape::FACE;
 }
 
-bool FiltersPlugin_HorizontalFace::isOk(
-  const GeomShapePtr& theShape, const ModelAPI_FiltersArgs& theArgs) const
+bool FiltersPlugin_HorizontalFace::isOk(const GeomShapePtr& theShape, const ResultPtr&,
+                                        const ModelAPI_FiltersArgs& theArgs) const
 {
-  if (!theShape->isPlanar())
+  if (!theShape->isFace() || !theShape->isPlanar())
     return false;
   GeomFacePtr aFace(new GeomAPI_Face(theShape));