]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Sketcher: merge errors when merging two groups (issue #1893)
authorazv <azv@opencascade.com>
Tue, 29 Nov 2016 05:03:29 +0000 (08:03 +0300)
committerazv <azv@opencascade.com>
Tue, 29 Nov 2016 05:03:29 +0000 (08:03 +0300)
src/SketchSolver/SketchSolver_Group.cpp

index 70f5afbb32dbba2b7c2fa3c19784b98c5dc6f0d1..867775e50d2301b9defd228c2831157cfe4c37a8 100644 (file)
@@ -477,6 +477,11 @@ void SketchSolver_Group::mergeGroups(const SketchSolver_Group& theGroup)
       continue;
     changeConstraint(aConstr);
   }
+
+  // merge previous states of groups => use the worst state,
+  // so the group after rebuilt may discard error messages if exist
+  if (theGroup.myPrevResult > myPrevResult)
+    myPrevResult = theGroup.myPrevResult;
 }
 
 // ============================================================================