Salome HOME
Issue #1368: Creation of a Qt panel. documentation correction
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintTangent.cpp
index 0bd02bf0b5d2b7b77254ff7f514888bdcd851dd3..299ed53fa94356949d8cf004d6be036f5f7f79f8 100644 (file)
@@ -85,9 +85,9 @@ void SketchSolver_ConstraintTangent::getAttributes(
     return;
   }
 
-  if (myType != CONSTRAINT_TANGENT_CIRCLE_LINE && 
+  if (myType == CONSTRAINT_TANGENT_ARC_LINE && 
       !hasSingleCoincidence(theAttributes[2], theAttributes[3]))
-    myErrorMsg = SketchSolver_Error::INCORRECT_ATTRIBUTE();
+    myErrorMsg = SketchSolver_Error::TANGENCY_FAILED();
 
   if (isSwap) {
     EntityWrapperPtr aTemp = theAttributes[2];