From 7e1edf763f53bb3a36cfebbccbe162f04a92d318 Mon Sep 17 00:00:00 2001 From: frederic wagner Date: Thu, 17 Nov 2022 14:51:21 +0100 Subject: [PATCH] gipy: correcting typo --- apps/gipy/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gipy/app.js b/apps/gipy/app.js index b0b9d3fb8..0618a9595 100644 --- a/apps/gipy/app.js +++ b/apps/gipy/app.js @@ -434,7 +434,7 @@ class Status { let next_point = this.path.point(this.current_segment + 1); let previous_point = this.path.point(this.current_segment); let nearest_point; - if (previous_point.fake_distance(this.position) < next_point.fake_distance(this.position) { + if (previous_point.fake_distance(this.position) < next_point.fake_distance(this.position)) { nearest_point = previous_point; } else { nearest_point = next_point;