From ed5fa5a3581c473b6eb15ea48a43446acb29439f Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 22 May 2008 14:19:03 +0000 Subject: [PATCH] Fix for Bug NPAL19757 - Post-pro: field with profil can't be built --- src/CONVERTOR/VISU_MedConvertor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 35b7570d..4097baad 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -216,7 +216,7 @@ namespace MED::PPolygoneInfo aPolygoneInfo = theMEDWrapper->GetPPolygoneInfo(theMeshInfo,theMEntity,theMGeom); for(TInt anElemId = 0; anElemId < aNbElem ; anElemId++){ - TInt aNbConn = aPolygoneInfo->GetNbConn(anElemNum[anElemId]); + TInt aNbConn = aPolygoneInfo->GetNbConn( anElemNum[ anElemId ] - 1 ); aSubProfile->myCellsSize += aNbConn; } break; @@ -226,7 +226,7 @@ namespace theMEDWrapper->GetPPolyedreInfo(theMeshInfo,theMEntity,theMGeom); for(TInt anElemId = 0; anElemId < aNbElem ; anElemId++){ MED::TCConnSliceArr aConnSliceArr = - aPolyedreInfo->GetConnSliceArr(anElemNum[anElemId]); + aPolyedreInfo->GetConnSliceArr( anElemNum[ anElemId ] - 1 ); TInt aNbFaces = aConnSliceArr.size(); TInt aCellSize = 0; for(TInt iFace = 0; iFace < aNbFaces; iFace++){ -- 2.39.2