From 491083a87cd5a0d0ee91a9c95f5737aec0923bb6 Mon Sep 17 00:00:00 2001 From: sbh Date: Thu, 25 Sep 2014 13:00:05 +0400 Subject: [PATCH] Issue #144 Crash on perpendicular constraint move --- .../SketchPlugin_ConstraintPerpendicular.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp index d3128d642..31772fb16 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp @@ -84,12 +84,7 @@ AISObjectPtr SketchPlugin_ConstraintPerpendicular::getAISObject(AISObjectPtr the void SketchPlugin_ConstraintPerpendicular::move(double theDeltaX, double theDeltaY) { - boost::shared_ptr aData = data(); - if (!aData->isValid()) - return; - - boost::shared_ptr aPoint = boost::dynamic_pointer_cast( - 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; } -- 2.39.2