From: ageay Date: Fri, 12 Aug 2011 15:48:33 +0000 (+0000) Subject: Correction of big bug on polygons on loading process. X-Git-Tag: V6_main_FINAL~989 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e9f0d12479e03ac0f1581323c070dd9ea413476;p=tools%2Fmedcoupling.git Correction of big bug on polygons on loading process. --- diff --git a/src/MEDLoader/MEDFileMeshElt.cxx b/src/MEDLoader/MEDFileMeshElt.cxx index 0f06d2f22..f183f85ed 100644 --- a/src/MEDLoader/MEDFileMeshElt.cxx +++ b/src/MEDLoader/MEDFileMeshElt.cxx @@ -149,7 +149,9 @@ void MEDFileUMeshPerType::loadPolyg(med_idt fid, const char *mName, int dt, int for(int i=0;i(),-1)); + const int *wi2=wi+(w2[1]-w2[0]); + w1=std::transform(wi,wi2,w1,std::bind2nd(std::plus(),-1)); + wi=wi2; *w2=*w2-1+i; } *w2=*w2-1+curNbOfElem;