diff options
| author | Simon Wells <swel024@gmail.com> | 2017-11-04 23:56:42 +0000 |
|---|---|---|
| committer | Simon Wells <swel024@gmail.com> | 2017-11-04 23:56:42 +0000 |
| commit | a204dbf637510ec05294670562de8cdfe4ab69e7 (patch) | |
| tree | 562a0c478b2ea0283aac6dfa4bb55158a9a7c2ed /src/helper/geom-pathstroke.cpp | |
| parent | added braces as specified in the coding standard (diff) | |
| download | inkscape-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.cpp | 4 |
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; |
