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~28^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b119a7b68063faeed89f4be03eea8f0049af1b75;p=modules%2Fmed.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() << "), ";