From 711043c7ca9bd675133e9bb1c1a3ec05c83cbeba Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 10 May 2008 20:20:11 +0000 Subject: update to latest 2geom. this adds gsl dependency, doesn't seem to make inskape executable bigger (bzr r5649) --- src/2geom/point.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/2geom/point.cpp') diff --git a/src/2geom/point.cpp b/src/2geom/point.cpp index 1e2a3463f..66eaf8ca6 100644 --- a/src/2geom/point.cpp +++ b/src/2geom/point.cpp @@ -18,7 +18,7 @@ namespace Geom { void Point::normalize() { double len = hypot(_pt[0], _pt[1]); if(len == 0) return; - if(is_nan(len)) return; + if(IS_NAN(len)) return; static double const inf = 1e400; if(len != inf) { *this /= len; @@ -71,7 +71,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 || IS_NAN(b) ? b : a ); } -- cgit v1.2.3