From: azv Date: Wed, 25 Mar 2015 09:15:26 +0000 (+0300) Subject: Fix the problem of an arc moving X-Git-Tag: V_1.1.0~87 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ae4af261618135aa57b92c462b55bb7b6ed742dc;p=modules%2Fshaper.git Fix the problem of an arc moving --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index 0cb74987a..27e3512ba 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -148,10 +148,6 @@ void SketchPlugin_Arc::move(double theDeltaX, double theDeltaY) if (!aData->isValid()) return; - std::shared_ptr aPoint1 = std::dynamic_pointer_cast( - aData->attribute(SketchPlugin_Arc::CENTER_ID())); - aPoint1->move(theDeltaX, theDeltaY); - myStartUpdate = true; myEndUpdate = true; std::shared_ptr aPoint2 = std::dynamic_pointer_cast( @@ -163,6 +159,10 @@ void SketchPlugin_Arc::move(double theDeltaX, double theDeltaY) aPoint3->move(theDeltaX, theDeltaY); myStartUpdate = false; myEndUpdate = false; + + std::shared_ptr aPoint1 = std::dynamic_pointer_cast( + aData->attribute(SketchPlugin_Arc::CENTER_ID())); + aPoint1->move(theDeltaX, theDeltaY); } double SketchPlugin_Arc::distanceToPoint(const std::shared_ptr& thePoint)