From 792b03f4012f785ec53345cc404a92cc3037eaca Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 2 Dec 2005 15:20:29 +0000 Subject: [PATCH] To avoid devision by zero (minor changes) --- src/PIPELINE/VISU_DeformedShapePL.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(){ -- 2.39.2