summaryrefslogtreecommitdiffstats
path: root/src/2geom/point.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-04-01 20:26:37 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-04-02 20:10:02 +0000
commitc08df128f0fdf5195eecc91e77ba72b0c60b6a47 (patch)
tree0caef8c7641aee795b028099d2047b55da7cbd5e /src/2geom/point.cpp
parentUpdate CMakeLists.txt (diff)
downloadinkscape-c08df128f0fdf5195eecc91e77ba72b0c60b6a47.tar.gz
inkscape-c08df128f0fdf5195eecc91e77ba72b0c60b6a47.zip
2geom: update to 7e3b3f75023c7c69fd085574cfaa46de0213bbbc
Diffstat (limited to 'src/2geom/point.cpp')
-rw-r--r--src/2geom/point.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2geom/point.cpp b/src/2geom/point.cpp
index bcdbab429..a48395b0c 100644
--- a/src/2geom/point.cpp
+++ b/src/2geom/point.cpp
@@ -74,7 +74,7 @@ namespace Geom {
void Point::normalize() {
double len = hypot(_pt[0], _pt[1]);
if(len == 0) return;
- if(IS_NAN(len)) return;
+ if(std::isnan(len)) return;
static double const inf = HUGE_VAL;
if(len != inf) {
*this /= len;
@@ -132,7 +132,7 @@ Coord L1(Point const &p) {
Coord LInfty(Point const &p) {
Coord const a(fabs(p[0]));
Coord const b(fabs(p[1]));
- return ( a < b || IS_NAN(b)
+ return ( a < b || std::isnan(b)
? b
: a );
}