Salome HOME
Issue #1664 In the Sketcher, add the function Split a segment - correction for arc...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintTangent.cpp
index 9d7256c18aef20b54139ab02501caa55b4159c6e..767d3f13cc5d494d8a75d0139a1f4f36e9978d21 100644 (file)
@@ -36,10 +36,8 @@ AISObjectPtr SketchPlugin_ConstraintTangent::getAISObject(AISObjectPtr thePrevio
   if (!sketch())
     return thePrevious;
 
-  AISObjectPtr anAIS = thePrevious;
-  if (!anAIS) {
-    anAIS = SketcherPrs_Factory::tangentConstraint(this, sketch()->coordinatePlane());
-  }
+  AISObjectPtr anAIS = SketcherPrs_Factory::tangentConstraint(this, sketch()->coordinatePlane(),
+                                                              thePrevious);
   return anAIS;
 }