From: apo Date: Tue, 5 Dec 2006 12:17:50 +0000 (+0000) Subject: To compile under GCC 3.4.1 X-Git-Tag: WP1_2_3_05-12-2006_cache_system X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f0d0f817d67c0d3bfda22828e56d24dada78aff5;p=modules%2Fvisu.git To compile under GCC 3.4.1 --- diff --git a/src/PIPELINE/VISU_PipeLineUtils.cxx b/src/PIPELINE/VISU_PipeLineUtils.cxx index 0729cb59..22a35362 100644 --- a/src/PIPELINE/VISU_PipeLineUtils.cxx +++ b/src/PIPELINE/VISU_PipeLineUtils.cxx @@ -54,7 +54,7 @@ namespace VISU vtkFloatingPointType* theSource) { static vtkFloatingPointType TOL = 10.0 / VTK_LARGE_FLOAT; - if(std::abs(theTarget[0] - theSource[0]) + std::abs(theTarget[1] - theSource[1]) < TOL) + if(fabs(theTarget[0] - theSource[0]) + fabs(theTarget[1] - theSource[1]) < TOL) return true; return false; }