From 817439b17505a397a77d29308faf277611a341c9 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 13 Apr 2015 13:56:09 +0300 Subject: [PATCH] Correction to create an axis on points. --- src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp | 6 +++--- src/SketchPlugin/plugin-Sketch.xml | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp index de8e013d4..a88479bc5 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp @@ -158,9 +158,9 @@ bool ModuleBase_WidgetShapeSelector::setObject(ObjectPtr theSelectedObject, } } else { AttributeSelectionPtr aSelectAttr = aData->selection(attributeID()); - ResultPtr aBody = std::dynamic_pointer_cast(theSelectedObject); - if (aSelectAttr && aBody && (theShape.get() != NULL)) { - aSelectAttr->setValue(aBody, theShape); + ResultPtr aResult = std::dynamic_pointer_cast(theSelectedObject); + if (aSelectAttr) { + aSelectAttr->setValue(aResult, theShape); isChanged = true; } } diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index b42b4af66..9b4b848ec 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -104,8 +104,9 @@ - - + + +