summaryrefslogtreecommitdiffstats
path: root/src/helper/geom-pathstroke.cpp
diff options
context:
space:
mode:
authorSimon Wells <swel024@gmail.com>2017-11-04 23:56:42 +0000
committerSimon Wells <swel024@gmail.com>2017-11-04 23:56:42 +0000
commita204dbf637510ec05294670562de8cdfe4ab69e7 (patch)
tree562a0c478b2ea0283aac6dfa4bb55158a9a7c2ed /src/helper/geom-pathstroke.cpp
parentadded braces as specified in the coding standard (diff)
downloadinkscape-a204dbf637510ec05294670562de8cdfe4ab69e7.tar.gz
inkscape-a204dbf637510ec05294670562de8cdfe4ab69e7.zip
Change abs to std::abs to fix warnings
Diffstat (limited to 'src/helper/geom-pathstroke.cpp')
-rw-r--r--src/helper/geom-pathstroke.cpp4
1 files changed, 2 insertions, 2 deletions
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;