]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Forgotten initialization of the Distance constraint field (issue #874)
authorazv <azv@opencascade.com>
Mon, 7 Sep 2015 08:16:23 +0000 (11:16 +0300)
committerazv <azv@opencascade.com>
Mon, 7 Sep 2015 08:16:23 +0000 (11:16 +0300)
src/SketchSolver/SketchSolver_ConstraintDistance.h

index 8c3a7ea5c5d663b5621212b3dd791b3193d33df7..affcc34ec768f1d1d9da115223eea70e5cd78821 100644 (file)
@@ -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