From: nds Date: Mon, 13 Apr 2015 10:56:09 +0000 (+0300) Subject: Correction to create an axis on points. X-Git-Tag: V_1.1.0~38^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=817439b17505a397a77d29308faf277611a341c9;p=modules%2Fshaper.git Correction to create an axis on points. --- 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 @@ - - + + +