Salome HOME
#refs 156 - Behavior of the Sketch during edition
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Point.cpp
index c198e9b90fd22c44e7c066ea30ee88a022aa2df1..a905d8486f731997ad95d03efe182f9821d1bafc 100644 (file)
@@ -54,7 +54,7 @@ void SketchPlugin_Point::move(double theDeltaX, double theDeltaY)
 
   boost::shared_ptr<GeomDataAPI_Point2D> aPoint1 = boost::dynamic_pointer_cast<GeomDataAPI_Point2D>(
       aData->attribute(SketchPlugin_Point::COORD_ID()));
-  aPoint1->setValue(aPoint1->x() + theDeltaX, aPoint1->y() + theDeltaY);
+  aPoint1->move(theDeltaX, theDeltaY);
 }
 
 double SketchPlugin_Point::distanceToPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint)