From: azv Date: Wed, 3 Oct 2018 07:08:12 +0000 (+0300) Subject: Issue #2672: sketch coloring is wrong X-Git-Tag: CEA_2018-2~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=58bc69f62a8016788e8975bfa606e5439485b8a2;p=modules%2Fshaper.git Issue #2672: sketch coloring is wrong Send message when the over-constrained sketch is loaded in document and the over-constraint situation is just resolved (SketchPlugin_Group::myDOF is changed from -1 to a positive value). --- diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index d8766bd0e..f3b693f00 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -327,7 +327,7 @@ void SketchSolver_Group::computeDoF() aDoFMsg << "DoF (degrees of freedom) = " << aDoF; mySketch->string(SketchPlugin_Sketch::SOLVER_DOF())->setValue(aDoFMsg.str()); - if (aDoF > 0 && myDOF == 0) + if (aDoF > 0 && myDOF <= 0) sendMessage(EVENT_SKETCH_UNDER_CONSTRAINED, mySketch, aDoF); else if (aDoF == 0/* && myDOF > 0*/) sendMessage(EVENT_SKETCH_FULLY_CONSTRAINED, mySketch, aDoF);