]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To avoid devision by zero (minor changes)
authorapo <apo@opencascade.com>
Fri, 2 Dec 2005 15:20:29 +0000 (15:20 +0000)
committerapo <apo@opencascade.com>
Fri, 2 Dec 2005 15:20:29 +0000 (15:20 +0000)
src/PIPELINE/VISU_DeformedShapePL.cxx

index af4bf8bd149763f7ec0aaad58cdad3c12b53f0be..5fc8b970ece6bb8e1327d09d80429338ca6ad8ff 100644 (file)
@@ -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(){