Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0f1615
)
Fix the crash while removing lines with coincident points
author
azv
<azv@opencascade.com>
Mon, 6 Apr 2015 11:58:19 +0000
(14:58 +0300)
committer
azv
<azv@opencascade.com>
Mon, 6 Apr 2015 11:58:19 +0000
(14:58 +0300)
src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp
patch
|
blob
|
history
diff --git
a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp
b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp
index 52dc868babdf4facc6a676da3c473e1e66871d0b..1172988cba921d4ba5e83eab6c9d0627ca88789f 100644
(file)
--- a/
src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp
+++ b/
src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp
@@
-121,8
+121,12
@@
bool SketchSolver_ConstraintCoincidence::remove(ConstraintPtr theConstraint)
break;
if (aPos >= (int)myExtraCoincidence.size())
return false; // there is no constraint, which is specified to remove
- else
+ else {
+ bool isEmpty = anExtraIt->first == SLVS_E_UNKNOWN;
myExtraCoincidence.erase(anExtraIt);
+ if (isEmpty)
+ return false;
+ }
}
bool isFullyRemoved = myStorage->removeConstraint(mySlvsConstraints[aPos+1]);