From c661cb9e67a92ccd9e982c96336948c431990704 Mon Sep 17 00:00:00 2001 From: geay Date: Wed, 16 Apr 2014 16:13:13 +0200 Subject: [PATCH] solve problem in MEDReader with polygons. --- src/MEDLoader/MEDFileFieldOverView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MEDLoader/MEDFileFieldOverView.cxx b/src/MEDLoader/MEDFileFieldOverView.cxx index 9bea050d6..d90308ee0 100644 --- a/src/MEDLoader/MEDFileFieldOverView.cxx +++ b/src/MEDLoader/MEDFileFieldOverView.cxx @@ -1019,7 +1019,7 @@ bool MEDUMeshMultiLev::buildVTUArrays(DataArrayDouble *& coords, DataArrayByte * { *dPtr++=connIPtr[1]-connIPtr[0]; dPtr=std::copy(connPtr+connIPtr[0],connPtr+connIPtr[1],dPtr); - *cPtr++=k; k+=connIPtr[1]-connIPtr[0]; + *cPtr++=k; k+=connIPtr[1]-connIPtr[0]+1; } } else -- 2.39.2