]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To port on Mandrake
authorapo <apo@opencascade.com>
Fri, 2 Dec 2005 15:35:17 +0000 (15:35 +0000)
committerapo <apo@opencascade.com>
Fri, 2 Dec 2005 15:35:17 +0000 (15:35 +0000)
src/PIPELINE/VISU_DeformedShapePL.cxx
src/PIPELINE/VISU_GaussPointsPL.cxx

index 5fc8b970ece6bb8e1327d09d80429338ca6ad8ff..0b8e346208120b6f36c319bd5c9646e5b313c96f 100644 (file)
@@ -91,7 +91,7 @@ void VISU_DeformedShapePL::Init(){
   float aScaleFactor = VISU_DeformedShapePL::GetScaleFactor( aDataSet );
 
   static double EPS = 1.0 / VTK_LARGE_FLOAT;
-  if(std::abs(aScalarRange[1]) > EPS)
+  if(fabs(aScalarRange[1]) > EPS)
     SetScale(aScaleFactor / aScalarRange[1]);
   else
     SetScale(0.0);
index dfa140a9f888fc18d0fedf34e4388aae1bc1290c..143f3a6f73a0239f4097b48fa07ddc120e97a3c5 100644 (file)
@@ -186,7 +186,7 @@ VISU_GaussPointsPL
   float aScaleFactor = VISU_DeformedShapePL::GetScaleFactor( aDataSet );
 
   static double EPS = 1.0 / VTK_LARGE_FLOAT;
-  if(std::abs(aScalarRange[1]) > EPS)
+  if(fabs(aScalarRange[1]) > EPS)
     SetScale( aScaleFactor / aScalarRange[1] );
   else
     SetScale(0.0);