X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Objects.cpp;h=1361a931a49baca81ba39b0b83ee3ac10d237a62;hb=5183e45dbb598541fb76e679b285b1e599916eaa;hp=5d27392b94eee04a3880e2398d97907f43a33870;hpb=4af82842098757e6e7f4f28e2eb744d184bb2b3e;p=modules%2Fshaper.git diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index 5d27392b9..1361a931a 100644 --- 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) { - createHistory(theGroupID); - //TODO: mpv stabilization hotfix - if (myHistory[theGroupID].size() <= (const unsigned int)theIndex) + if (theIndex == -1) return ObjectPtr(); + createHistory(theGroupID); return myHistory[theGroupID][theIndex]; }