From: enk Date: Wed, 27 Apr 2005 10:44:55 +0000 (+0000) Subject: Fix on: X-Git-Tag: V2_2_3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72f7a63df7202e6a0814565c1a4516247f599389;p=modules%2Fvisu.git Fix on: Bug PAL8698 Scalar Map of a field with more than 3 components Bug PAL8683 Deformed shape of a field with more than 3 components Bug PAL8684 A med file imported twice is not updated --- diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 5fcb2f9e..a9ba9a5e 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -390,11 +390,11 @@ namespace{ break; case 4: for (int i = 0, ji = 0; i < iEnd; ++i, ji = i*4) - theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+2],0.0); + theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+1],0.0); break; case 6: - for (int i = 0, ji = 0; i < iEnd; ++i, ji = i*4) - theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+2],anArray[ji+5]); + for (int i = 0, ji = 0; i < iEnd; ++i, ji = i*6) + theFloatArray->SetTuple3(k++,anArray[ji],anArray[ji+1],anArray[ji+2]); break; default: EXCEPTION(runtime_error,"GetValsOnTimeStamp - There is no an algorithm for representation of the field !!!");