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
Issue #2612 : Re-calculate model after modification of parameters
[modules/shaper.git]
/
src
/
Model
/
Model_ResultBody.cpp
diff --git
a/src/Model/Model_ResultBody.cpp
b/src/Model/Model_ResultBody.cpp
index 7b7ae0780771916b7b1376d9dce9a845d221461d..c68a4ae4b54f2107f56759a0fa7c5bcfbc99ed29 100644
(file)
--- a/
src/Model/Model_ResultBody.cpp
+++ b/
src/Model/Model_ResultBody.cpp
@@
-93,6
+93,8
@@
int Model_ResultBody::numberOfSubs(bool forTree) const
ResultBodyPtr Model_ResultBody::subResult(const int theIndex, bool forTree) const
{
+ if (theIndex >= int(mySubs.size()))
+ return ResultBodyPtr();
return mySubs.at(theIndex);
}