diff options
author | Abyss777 <abyss@fox5.ru> | 2016-10-25 12:37:01 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-10-25 12:37:01 +0500 |
commit | 55ec26e048eb9cd635bedf07726ab206e8b8536f (patch) | |
tree | dfbfd9be92d36d567f93ac036967e17601199fde /src/org/traccar/CoordinatesHandler.java | |
parent | 419a008c13e6d388e56ac1961a2fc6959df87ab4 (diff) | |
download | trackermap-server-55ec26e048eb9cd635bedf07726ab206e8b8536f.tar.gz trackermap-server-55ec26e048eb9cd635bedf07726ab206e8b8536f.tar.bz2 trackermap-server-55ec26e048eb9cd635bedf07726ab206e8b8536f.zip |
Expand expression
Diffstat (limited to 'src/org/traccar/CoordinatesHandler.java')
-rw-r--r-- | src/org/traccar/CoordinatesHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/CoordinatesHandler.java b/src/org/traccar/CoordinatesHandler.java index 703361ecf..b9c33dc2b 100644 --- a/src/org/traccar/CoordinatesHandler.java +++ b/src/org/traccar/CoordinatesHandler.java @@ -44,7 +44,7 @@ public class CoordinatesHandler extends BaseDataHandler { position.getLatitude(), position.getLongitude(), last.getLatitude(), last.getLongitude()); boolean satisfiesMin = coordinatesMinError == 0 || distance > coordinatesMinError; boolean satisfiesMax = coordinatesMaxError == 0 || distance < coordinatesMaxError || position.getValid(); - if (!(satisfiesMin && satisfiesMax)) { + if (!satisfiesMin || !satisfiesMax) { position.setLatitude(last.getLatitude()); position.setLongitude(last.getLongitude()); } |