From 7afd44814de375a142f0c5961db991085d83b767 Mon Sep 17 00:00:00 2001 From: Carlo Camilloni <carlo.camilloni@gmail.com> Date: Tue, 3 Jun 2014 12:17:23 +0100 Subject: [PATCH] FuncSumHills: fixed a bug introduced yesterday for --histo --- src/function/FuncSumHills.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/function/FuncSumHills.cpp b/src/function/FuncSumHills.cpp index 44d09f41b..a6b75634c 100644 --- a/src/function/FuncSumHills.cpp +++ b/src/function/FuncSumHills.cpp @@ -317,7 +317,7 @@ fmt("%14.9f") for(unsigned i=0;i<getNumberOfArguments();i++) { std::string ss = getPntrToArgument(i)->getName(); for(unsigned j=0;j<proj.size();j++) { - if(proj[i]==ss) tmphistovalues.push_back( getPntrToArgument(i) ); + if(proj[j]==ss) tmphistovalues.push_back( getPntrToArgument(i) ); } } } @@ -414,7 +414,7 @@ fmt("%14.9f") for(unsigned i=0;i<getNumberOfArguments();i++) { std::string ss = getPntrToArgument(i)->getName(); for(unsigned j=0;j<proj.size();j++) { - if(proj[i]==ss) tmphistovalues.push_back( getPntrToArgument(i) ); + if(proj[j]==ss) tmphistovalues.push_back( getPntrToArgument(i) ); } } } -- GitLab