X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Objects.cpp;h=54033a49b0e8c519d48f41d548692550fe8c5934;hb=refs%2Ftags%2FV_1.2.1;hp=deadfd2a3c8b686c80147f0f0517e5de4135251f;hpb=4732946855f20ff628e7e34255287082819a31f4;p=modules%2Fshaper.git diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index deadfd2a3..54033a49b 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -340,6 +340,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() <= theIndex) + return ObjectPtr(); return myHistory[theGroupID][theIndex]; }