From: rnv Date: Wed, 14 Mar 2012 07:47:34 +0000 (+0000) Subject: Fix for the "21504: EDF 2088 VISU: scalar map of the modulus of an ELGA field with... X-Git-Tag: V6_main_20120319 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4190569a391518c0c36d1f0982ff5f5548cd9db0;p=modules%2Fvisu.git Fix for the "21504: EDF 2088 VISU: scalar map of the modulus of an ELGA field with 2 components" issue. --- diff --git a/src/CONVERTOR/VISU_MeshValue.cxx b/src/CONVERTOR/VISU_MeshValue.cxx index 851aaa7f..30c0dd6c 100644 --- a/src/CONVERTOR/VISU_MeshValue.cxx +++ b/src/CONVERTOR/VISU_MeshValue.cxx @@ -346,7 +346,7 @@ namespace VISU TVTKBasicType aModule = (TVTKBasicType)sqrt((double)aModules[0]); aDataValues[0] = aModule; // init Min aDataValues[1] = aModule; // init Max - aDataValues[2] = aModule; // init Average + aDataValues[2] = 0.0; // init Average for (vtkIdType ig = 0; ig < aNbGauss; ig++) { aModule = (TVTKBasicType)sqrt((double)aModules[ig]);