From 9b8fc8521d7eddbabce2eec9d2ce55217be70823 Mon Sep 17 00:00:00 2001 From: srn Date: Mon, 1 Feb 2010 11:05:19 +0000 Subject: [PATCH] Fixed method GetLoggedDeltas, now they are sorted by object's entries --- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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