]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomValidators/GeomValidators_ShapeType.cpp
Salome HOME
Fix for the issue #2465 and a unit test and a correction for the test becomes working.
[modules/shaper.git] / src / GeomValidators / GeomValidators_ShapeType.cpp
index 0c1a18b497e6774fe0525f0b59ee0be82e15a348..3ee016de3709faea44c4184fa406ce640c623983 100755 (executable)
@@ -232,7 +232,7 @@ bool GeomValidators_ShapeType::isValidShape(const GeomShapePtr theShape,
       aValid = theShape->isEdge();
       break;
     case Line:
-      aValid = theShape->isEdge() && !GeomAPI_Curve(theShape).isCircle();
+      aValid = theShape->isEdge() && GeomAPI_Curve(theShape).isLine();
       break;
     case Circle:
       aValid = theShape->isEdge() && GeomAPI_Curve(theShape).isCircle();