From 681034c769c908408cfab400acb902c9f9de0da1 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 2 Jun 2016 10:40:51 +0300 Subject: [PATCH] Avoid conflicting constraints message when canceling sketch --- src/SketchSolver/SketchSolver_Group.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SketchSolver/SketchSolver_Group.cpp b/src/SketchSolver/SketchSolver_Group.cpp index 52ff77c13..19a4a30fe 100644 --- a/src/SketchSolver/SketchSolver_Group.cpp +++ b/src/SketchSolver/SketchSolver_Group.cpp @@ -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(); -- 2.39.2