diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-04-15 10:22:38 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-04-15 10:22:38 +1200 |
commit | 920ce00f759b60f0a186e6cd3a5c599cd051f3f3 (patch) | |
tree | 4bae055fb7f3d59d759ac635635d41053e72c9ac /src/org/traccar/helper | |
parent | ed7fe94f1da3b333a1ffff4f9238bab7484a81ca (diff) | |
download | trackermap-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/helper')
-rw-r--r-- | src/org/traccar/helper/LocationTree.java | 2 |
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)) { |