Salome HOME
Issue #725 - Translation with parameters - wrong coordinates
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintRigid.cpp
index 741674a5b9429e461ffa6cf1da6bbca6f7d00029..78574b338eddafe71e0616b5dad1944693808d3e 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "SketchPlugin_ConstraintRigid.h"
 #include "SketchPlugin_ConstraintParallel.h"
+#include "SketchPlugin_Feature.h"
 
 #include <SketcherPrs_Factory.h>
 
@@ -34,7 +35,7 @@ AISObjectPtr SketchPlugin_ConstraintRigid::getAISObject(AISObjectPtr thePrevious
     return thePrevious;
 
   AISObjectPtr anAIS = thePrevious;
-  if (!anAIS) {
+  if (anAIS.get() == NULL) {
     anAIS = SketcherPrs_Factory::rigidConstraint(this, sketch()->coordinatePlane());
   }