diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-04-01 20:30:31 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-04-02 20:10:02 +0000 |
| commit | aea9a4ef6bee5b259118ceed660349e30dfdc285 (patch) | |
| tree | f5c94480142513ab675cd662e5df77b355dec381 /src/live_effects/lpe-knot.cpp | |
| parent | Replace IS_FINITE with std::isfinite (exists since C++11) (diff) | |
| download | inkscape-aea9a4ef6bee5b259118ceed660349e30dfdc285.tar.gz inkscape-aea9a4ef6bee5b259118ceed660349e30dfdc285.zip | |
Replace IS_NAN with std::isnan (exists since C++11)
Diffstat (limited to 'src/live_effects/lpe-knot.cpp')
| -rw-r--r-- | src/live_effects/lpe-knot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp index d48dbd765..6ecf3ec7a 100644 --- a/src/live_effects/lpe-knot.cpp +++ b/src/live_effects/lpe-knot.cpp @@ -182,7 +182,7 @@ CrossingPoints::CrossingPoints(Geom::PathVector const &paths) : std::vector<Cros } for (auto & time : times){ //std::cout<<"intersection "<<i<<"["<<ii<<"]("<<times[k].first<<")= "<<j<<"["<<jj<<"]("<<times[k].second<<")\n"; - if ( !IS_NAN(time.first) && !IS_NAN(time.second) ){ + if ( !std::isnan(time.first) && !std::isnan(time.second) ){ double zero = 1e-4; if ( (i==j) && (fabs(time.first+ii - time.second-jj) <= zero) ) { //this is just end=start of successive curves in a path. |
