From ae4af261618135aa57b92c462b55bb7b6ed742dc Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 25 Mar 2015 12:15:26 +0300 Subject: [PATCH] Fix the problem of an arc moving --- src/SketchPlugin/SketchPlugin_Arc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.2