]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Avoid conflicting constraints message when canceling sketch
authorazv <azv@opencascade.com>
Thu, 2 Jun 2016 07:40:51 +0000 (10:40 +0300)
committerazv <azv@opencascade.com>
Thu, 2 Jun 2016 07:40:51 +0000 (10:40 +0300)
src/SketchSolver/SketchSolver_Group.cpp

index 52ff77c1345b7ea96900403e4ea4048619f0a26b..19a4a30fe4702bebce9d0e453b22d39652c91ee9 100644 (file)
@@ -377,10 +377,10 @@ bool SketchSolver_Group::resolveConstraints()
       updateMultiConstraints(myConstraints);
       if (myPrevResult != STATUS_OK || myPrevResult == STATUS_UNKNOWN) {
         getWorkplane()->string(SketchPlugin_Sketch::SOLVER_ERROR())->setValue("");
-        // the error message should be changed before sending the message
-        sendMessage(EVENT_SOLVER_REPAIRED, myConflictingConstraints);
         myConflictingConstraints.clear();
         myPrevResult = STATUS_OK;
+        // the error message should be changed before sending the message
+        sendMessage(EVENT_SOLVER_REPAIRED, myConflictingConstraints);
       }
     } else {
       mySketchSolver->undo();