]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #144 Crash on perpendicular constraint move
authorsbh <sergey.belash@opencascade.com>
Thu, 25 Sep 2014 09:00:05 +0000 (13:00 +0400)
committersbh <sergey.belash@opencascade.com>
Thu, 25 Sep 2014 09:00:05 +0000 (13:00 +0400)
src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp

index d3128d64223d25b4762ba281e38a786cc51c156e..31772fb16fff275e4367fbd110b14ba567be0182 100644 (file)
@@ -84,12 +84,7 @@ AISObjectPtr SketchPlugin_ConstraintPerpendicular::getAISObject(AISObjectPtr the
 
 void SketchPlugin_ConstraintPerpendicular::move(double theDeltaX, double theDeltaY)
 {
-  boost::shared_ptr<ModelAPI_Data> aData = data();
-  if (!aData->isValid())
-    return;
-
-  boost::shared_ptr<GeomDataAPI_Point2D> aPoint = boost::dynamic_pointer_cast<GeomDataAPI_Point2D>(
-      aData->attribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT()));
-  aPoint->setValue(aPoint->x() + theDeltaX, aPoint->y() + theDeltaY);
+  //Flyout point of the constraint follows it's features
+  return;
 }