From: abn Date: Mon, 3 Mar 2014 11:15:35 +0000 (+0100) Subject: Minor bug: MEDFileParameterMultiTS::getPosOfTimeStep() was improperly testing iterati... X-Git-Tag: V7_4_0a1~26^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=facc2c385d54aea686a7a7121a7a9b3daf12daee;p=tools%2Fmedcoupling.git Minor bug: MEDFileParameterMultiTS::getPosOfTimeStep() was improperly testing iteration/order. --- diff --git a/src/MEDLoader/MEDFileParameter.cxx b/src/MEDLoader/MEDFileParameter.cxx index 4838bbba2..d715f1b04 100644 --- a/src/MEDLoader/MEDFileParameter.cxx +++ b/src/MEDLoader/MEDFileParameter.cxx @@ -606,7 +606,7 @@ int MEDFileParameterMultiTS::getPosOfTimeStep(int iteration, int order) const const MEDFileParameter1TS *elt(*it); if(elt) { - if(elt->getIteration()==iteration && elt->getOrder()) + if(elt->getIteration()==iteration && elt->getOrder()==order) return ret; else oss << "(" << elt->getIteration() << "," << elt->getOrder() << "), ";