]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
convert float constant to vtkFloatingPointType to solve porting problem T3_2_0b1_pre1
authormsv <msv@opencascade.com>
Tue, 25 Apr 2006 07:23:12 +0000 (07:23 +0000)
committermsv <msv@opencascade.com>
Tue, 25 Apr 2006 07:23:12 +0000 (07:23 +0000)
src/PIPELINE/VISU_LookupTable.cxx

index 9d9b533bb7fc8b1c80b63e5b10e9749c2a071fda..e0d7440cafe9b23ef6501454cddb01c9bfa479b6 100644 (file)
@@ -90,7 +90,7 @@ VISU_LookupTable
 {
   if(GetScale() == VTK_SCALE_LOG10) {
     vtkFloatingPointType aLowBound = log10(this->TableRange[0]);
-    v = pow(10.0f,aLowBound + (v - aLowBound)*myScale);
+    v = pow(vtkFloatingPointType(10.0), aLowBound + (v - aLowBound)*myScale);
     return vtkLookupTable::MapValue(v);
   } else if (!myBicolor) {
     v = this->TableRange[0] + (v - this->TableRange[0])*myScale;