From: apo Date: Fri, 2 Dec 2005 15:20:29 +0000 (+0000) Subject: To avoid devision by zero (minor changes) X-Git-Tag: TG-D5-38-2003_D2005-20-12~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=792b03f4012f785ec53345cc404a92cc3037eaca;p=modules%2Fvisu.git To avoid devision by zero (minor changes) --- diff --git a/src/PIPELINE/VISU_DeformedShapePL.cxx b/src/PIPELINE/VISU_DeformedShapePL.cxx index af4bf8bd..5fc8b970 100644 --- a/src/PIPELINE/VISU_DeformedShapePL.cxx +++ b/src/PIPELINE/VISU_DeformedShapePL.cxx @@ -93,6 +93,8 @@ void VISU_DeformedShapePL::Init(){ static double EPS = 1.0 / VTK_LARGE_FLOAT; if(std::abs(aScalarRange[1]) > EPS) SetScale(aScaleFactor / aScalarRange[1]); + else + SetScale(0.0); } VISU_ScalarMapPL::THook* VISU_DeformedShapePL::DoHook(){