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
Fix for the issue #577
[modules/shaper.git]
/
src
/
Model
/
Model_Objects.cpp
diff --git
a/src/Model/Model_Objects.cpp
b/src/Model/Model_Objects.cpp
index 5d27392b94eee04a3880e2398d97907f43a33870..1361a931a49baca81ba39b0b83ee3ac10d237a62 100644
(file)
--- a/
src/Model/Model_Objects.cpp
+++ b/
src/Model/Model_Objects.cpp
@@
-339,10
+339,9
@@
ObjectPtr Model_Objects::object(TDF_Label theLabel)
ObjectPtr Model_Objects::object(const std::string& theGroupID, const int theIndex)
{
ObjectPtr Model_Objects::object(const std::string& theGroupID, const int theIndex)
{
- createHistory(theGroupID);
- //TODO: mpv stabilization hotfix
- if (myHistory[theGroupID].size() <= (const unsigned int)theIndex)
+ if (theIndex == -1)
return ObjectPtr();
return ObjectPtr();
+ createHistory(theGroupID);
return myHistory[theGroupID][theIndex];
}
return myHistory[theGroupID][theIndex];
}