Salome HOME
Merge branch 'CPPHighAPI'
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintEqual.cpp
index 1b80c0c6b050e16088bea1b496c263716c60a5f0..e63764802a3f0d65cb2f3f0d5e217eb9dbe27c79 100644 (file)
@@ -36,10 +36,8 @@ AISObjectPtr SketchPlugin_ConstraintEqual::getAISObject(AISObjectPtr thePrevious
   if (!sketch())
     return thePrevious;
 
-  AISObjectPtr anAIS = thePrevious;
-  if (!anAIS) {
-    anAIS = SketcherPrs_Factory::equalConstraint(this, sketch()->coordinatePlane());
-  }
+  AISObjectPtr anAIS = SketcherPrs_Factory::equalConstraint(this, sketch()->coordinatePlane(),
+                                                            thePrevious);
   return anAIS;
 }