summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/calligraphic-tool.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-04-01 20:30:31 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-04-02 20:10:02 +0000
commitaea9a4ef6bee5b259118ceed660349e30dfdc285 (patch)
treef5c94480142513ab675cd662e5df77b355dec381 /src/ui/tools/calligraphic-tool.cpp
parentReplace IS_FINITE with std::isfinite (exists since C++11) (diff)
downloadinkscape-aea9a4ef6bee5b259118ceed660349e30dfdc285.tar.gz
inkscape-aea9a4ef6bee5b259118ceed660349e30dfdc285.zip
Replace IS_NAN with std::isnan (exists since C++11)
Diffstat (limited to 'src/ui/tools/calligraphic-tool.cpp')
-rw-r--r--src/ui/tools/calligraphic-tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tools/calligraphic-tool.cpp b/src/ui/tools/calligraphic-tool.cpp
index ffe1ca46c..37a4a24f0 100644
--- a/src/ui/tools/calligraphic-tool.cpp
+++ b/src/ui/tools/calligraphic-tool.cpp
@@ -623,7 +623,7 @@ bool CalligraphicTool::root_handler(GdkEvent* event) {
// so _gradually_ let go attraction to prevent jerks
target = (this->hatch_spacing * speed + hatch_dist * (SPEED_NORMAL - speed))/SPEED_NORMAL;
}
- if (!IS_NAN(dot) && dot < -0.5) {// flip
+ if (!std::isnan(dot) && dot < -0.5) {// flip
target = -target;
}
@@ -708,7 +708,7 @@ bool CalligraphicTool::root_handler(GdkEvent* event) {
} else {
// Not drawing but spacing set: gray, center snapped, fixed radius
Geom::Point c = (nearest + this->hatch_spacing * hatch_unit_vector) * motion_to_curve.inverse();
- if (!IS_NAN(c[Geom::X]) && !IS_NAN(c[Geom::Y])) {
+ if (!std::isnan(c[Geom::X]) && !std::isnan(c[Geom::Y])) {
Geom::Affine const sm (Geom::Scale(this->hatch_spacing, this->hatch_spacing) * Geom::Translate(c));
sp_canvas_item_affine_absolute(this->hatch_area, sm);
sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(this->hatch_area), 0x7f7f7fff, 1.0, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT);