From a204dbf637510ec05294670562de8cdfe4ab69e7 Mon Sep 17 00:00:00 2001 From: Simon Wells Date: Sun, 5 Nov 2017 12:56:42 +1300 Subject: Change abs to std::abs to fix warnings --- src/helper/geom-pathstroke.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helper/geom-pathstroke.cpp') diff --git a/src/helper/geom-pathstroke.cpp b/src/helper/geom-pathstroke.cpp index 50627fd0b..c3e4f8213 100644 --- a/src/helper/geom-pathstroke.cpp +++ b/src/helper/geom-pathstroke.cpp @@ -341,8 +341,8 @@ Geom::Point adjust_circles( Geom::Circle &circle1, Geom::Circle &circle2, Geom:: Geom::Point p0 = points[0].point(); Geom::Point p1 = points[1].point(); // std::cout << " points: " << p0 << "; " << p1 << std::endl; - if( abs( Geom::distance( p0, circle2.center() ) - circle2.radius() ) < - abs( Geom::distance( p1, circle2.center() ) - circle2.radius() ) ) { + if( std::abs( Geom::distance( p0, circle2.center() ) - circle2.radius() ) < + std::abs( Geom::distance( p1, circle2.center() ) - circle2.radius() ) ) { return p0; } else { return p1; -- cgit v1.2.3