From: ouv Date: Mon, 23 Jun 2008 11:31:50 +0000 (+0000) Subject: Minor fix X-Git-Tag: TG_VISU_2008_2008-06-26~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a860a9b8eecff6651f1fc1b92da9b91486110d0;p=modules%2Fvisu.git Minor fix --- diff --git a/src/PIPELINE/VISU_DeformedShapePL.cxx b/src/PIPELINE/VISU_DeformedShapePL.cxx index 6631af08..d1e8d6f3 100644 --- a/src/PIPELINE/VISU_DeformedShapePL.cxx +++ b/src/PIPELINE/VISU_DeformedShapePL.cxx @@ -109,6 +109,8 @@ VISU_DeformedShapePL aVolume *= aVol; } } + if( fabs(idim) < 1.0 / VTK_LARGE_FLOAT ) + return 0.0; // to avoid division by zero aVolume /= aNbElem; return pow(aVolume, vtkFloatingPointType(1.0/idim)); }