Salome HOME
Fix for the "21504: EDF 2088 VISU: scalar map of the modulus of an ELGA field with... V6_main_20120319 V6_main_20120320 V6_main_20120321
authorrnv <rnv@opencascade.com>
Wed, 14 Mar 2012 07:47:34 +0000 (07:47 +0000)
committerrnv <rnv@opencascade.com>
Wed, 14 Mar 2012 07:47:34 +0000 (07:47 +0000)
src/CONVERTOR/VISU_MeshValue.cxx

index 851aaa7fdb043dc8b2174d1c865f65610dc2553c..30c0dd6c162da1ec10c0a53086a10b1aaa16849b 100644 (file)
@@ -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]);