From: apo Date: Fri, 2 Dec 2005 15:35:17 +0000 (+0000) Subject: To port on Mandrake X-Git-Tag: TG-D5-38-2003_D2005-20-12~70 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15a4429228937f77f30ef6f1f8d600f449b84106;p=modules%2Fvisu.git To port on Mandrake --- diff --git a/src/PIPELINE/VISU_DeformedShapePL.cxx b/src/PIPELINE/VISU_DeformedShapePL.cxx index 5fc8b970..0b8e3462 100644 --- a/src/PIPELINE/VISU_DeformedShapePL.cxx +++ b/src/PIPELINE/VISU_DeformedShapePL.cxx @@ -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); diff --git a/src/PIPELINE/VISU_GaussPointsPL.cxx b/src/PIPELINE/VISU_GaussPointsPL.cxx index dfa140a9..143f3a6f 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.cxx +++ b/src/PIPELINE/VISU_GaussPointsPL.cxx @@ -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);