From: azv Date: Mon, 7 Sep 2015 08:16:23 +0000 (+0300) Subject: Forgotten initialization of the Distance constraint field (issue #874) X-Git-Tag: V_1.4.0_beta4~101 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8ec74007ec8d9380b89206fc553aa8bd41794465;p=modules%2Fshaper.git Forgotten initialization of the Distance constraint field (issue #874) --- diff --git a/src/SketchSolver/SketchSolver_ConstraintDistance.h b/src/SketchSolver/SketchSolver_ConstraintDistance.h index 8c3a7ea5c..affcc34ec 100644 --- a/src/SketchSolver/SketchSolver_ConstraintDistance.h +++ b/src/SketchSolver/SketchSolver_ConstraintDistance.h @@ -18,7 +18,9 @@ class SketchSolver_ConstraintDistance : public SketchSolver_Constraint { public: SketchSolver_ConstraintDistance(ConstraintPtr theConstraint) : - SketchSolver_Constraint(theConstraint), myType(SLVS_C_UNKNOWN) + SketchSolver_Constraint(theConstraint), + myType(SLVS_C_UNKNOWN), + myIsNegative(false) {} /// \brief Update constraint