aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-15 10:22:38 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-15 10:22:38 +1200
commit920ce00f759b60f0a186e6cd3a5c599cd051f3f3 (patch)
tree4bae055fb7f3d59d759ac635635d41053e72c9ac /src/org/traccar
parented7fe94f1da3b333a1ffff4f9238bab7484a81ca (diff)
downloadtrackermap-server-920ce00f759b60f0a186e6cd3a5c599cd051f3f3.tar.gz
trackermap-server-920ce00f759b60f0a186e6cd3a5c599cd051f3f3.tar.bz2
trackermap-server-920ce00f759b60f0a186e6cd3a5c599cd051f3f3.zip
Fix regression issue in the tree
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/helper/LocationTree.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/LocationTree.java b/src/org/traccar/helper/LocationTree.java
index 90e5fe8c2..3c2d2ff92 100644
--- a/src/org/traccar/helper/LocationTree.java
+++ b/src/org/traccar/helper/LocationTree.java
@@ -106,7 +106,7 @@ public class LocationTree {
Item best = current;
if (next != null) {
- findNearest(next, search, depth + 1);
+ best = findNearest(next, search, depth + 1);
}
if (current.squaredDistance(search) < best.squaredDistance(search)) {