From: ouv Date: Wed, 8 Jun 2011 12:53:15 +0000 (+0000) Subject: Fix for Post-Pro non-regression tests: ImportMedField, B6 and B7 X-Git-Tag: V6_3_BR_20110609 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bdb5731a2d616bbc3a0e3368e0b7bf8141ed9b3e;p=modules%2Fvisu.git Fix for Post-Pro non-regression tests: ImportMedField, B6 and B7 --- 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; + } } }