Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update viewer on delete an item
[modules/shaper.git]
/
src
/
Model
/
Model_Update.cpp
diff --git
a/src/Model/Model_Update.cpp
b/src/Model/Model_Update.cpp
index 07f87c3edadc54194c031f07628d568c490c5fbe..d8896e68039a01774be036a7720ca08e9a9b1f8e 100644
(file)
--- a/
src/Model/Model_Update.cpp
+++ b/
src/Model/Model_Update.cpp
@@
-647,7
+647,12
@@
bool Model_Update::processFeature(FeaturePtr theFeature)
}
// searching for the next not used reason
aProcessedReasons.insert(aReason);
}
// searching for the next not used reason
aProcessedReasons.insert(aReason);
- aReasons.erase(aReason);
+ // check theFeature is still in the list of modified, because it may be removed sometimes
+ // while updating SketchPlugin_Ellipse
+ if (myModified.find(theFeature) != myModified.end())
+ aReasons.erase(aReason);
+ else
+ break;
}
// restore the modified reasons: they will be used in the update of arguments
if (allSubsUsed) { // restore theFeature in this set
}
// restore the modified reasons: they will be used in the update of arguments
if (allSubsUsed) { // restore theFeature in this set