From: srn Date: Mon, 1 Feb 2010 11:05:19 +0000 (+0000) Subject: Fixed method GetLoggedDeltas, now they are sorted by object's entries X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FOB_SRN;p=modules%2Fkernel.git Fixed method GetLoggedDeltas, now they are sorted by object's entries --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index 07f3d3b7f..aa5b02ab5 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -42,6 +42,7 @@ using namespace std; #include "SALOMEDSImpl_IParameters.hxx" #include "SALOMEDSImpl_ScalarVariable.hxx" +#include #include #define DIRECTORYID 16661 @@ -1994,10 +1995,16 @@ vector< StudyDelta > SALOMEDSImpl_Study::GetLoggedDeltas() map::const_iterator p = _deltas.begin(); + vector entries(_deltas.size()); for(size_t i = 0; p != _deltas.end(); i++, p++) { - aDeltas[i] = p->second; + entries[i] = p->first; } + std::sort(entries.begin(), entries.end()); + for(size_t i = 0, aSize = entries.size(); i