Salome HOME
Unit tests for already implemented filters.
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_HorizontalFace.cpp
index c602e421e7e872ce5964b620c561eb78ecf73d6b..6bda6a6cfcc802383b80103191c133f28fdbbeea 100644 (file)
@@ -30,7 +30,7 @@ bool FiltersPlugin_HorizontalFace::isSupported(GeomAPI_Shape::ShapeType theType)
 bool FiltersPlugin_HorizontalFace::isOk(
   const GeomShapePtr& theShape, const ModelAPI_FiltersArgs& theArgs) const
 {
-  if (!theShape->isPlanar())
+  if (!theShape->isFace() || !theShape->isPlanar())
     return false;
   GeomFacePtr aFace(new GeomAPI_Face(theShape));