diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-05-10 20:20:11 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-05-10 20:20:11 +0000 |
| commit | 711043c7ca9bd675133e9bb1c1a3ec05c83cbeba (patch) | |
| tree | 9395fdf4cc57a8192fc0ebe506dd0f5b9db0d9d3 /src/2geom/point.cpp | |
| parent | Do not show/edit image URL for data URIs. (diff) | |
| download | inkscape-711043c7ca9bd675133e9bb1c1a3ec05c83cbeba.tar.gz inkscape-711043c7ca9bd675133e9bb1c1a3ec05c83cbeba.zip | |
update to latest 2geom. this adds gsl dependency, doesn't seem to make inskape executable bigger
(bzr r5649)
Diffstat (limited to '')
| -rw-r--r-- | src/2geom/point.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); } |
