diff --git a/src/Mod/Part/App/PropertyTopoShape.cpp b/src/Mod/Part/App/PropertyTopoShape.cpp index d590a8553d..908f3b9c6b 100644 --- a/src/Mod/Part/App/PropertyTopoShape.cpp +++ b/src/Mod/Part/App/PropertyTopoShape.cpp @@ -185,7 +185,7 @@ PyObject *PropertyPartShape::getPyObject(void) } } - if (prop) prop->setConst(); + prop->setConst(); return prop; } diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.cpp b/src/Mod/PartDesign/App/FeatureSketchBased.cpp index 61c8271b30..425d4cf149 100644 --- a/src/Mod/PartDesign/App/FeatureSketchBased.cpp +++ b/src/Mod/PartDesign/App/FeatureSketchBased.cpp @@ -925,7 +925,7 @@ double ProfileBased::getReversedAngle(const Base::Vector3d &b, const Base::Vecto return SketchNormal * cross; } catch (...) { - return Reversed.getValue(); + return Reversed.getValue() ? 1 : 0; } }