From bdb5731a2d616bbc3a0e3368e0b7bf8141ed9b3e Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 8 Jun 2011 12:53:15 +0000 Subject: [PATCH] Fix for Post-Pro non-regression tests: ImportMedField, B6 and B7 --- src/VISU_I/VISU_CorbaMedConvertor.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/VISU_I/VISU_CorbaMedConvertor.cxx b/src/VISU_I/VISU_CorbaMedConvertor.cxx index 31424078..f888ebb3 100644 --- a/src/VISU_I/VISU_CorbaMedConvertor.cxx +++ b/src/VISU_I/VISU_CorbaMedConvertor.cxx @@ -1431,6 +1431,15 @@ namespace long int aSize; int* aValuePtr = ReceiverFactory::getValue(aSender, aSize); myConnIndex.assign(aValuePtr, aValuePtr + aSize); + + // since the connectivity indices for polygones are stored together with other elements + // we should cut the indices by a value of the first one + if( aSize > 0 ) + { + int anOffset = myConnIndex.front() - 1; + for( int anIndex = 0; anIndex < aSize; anIndex++ ) + myConnIndex[ anIndex ] -= anOffset; + } } } -- 2.39.2