aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-10-25 12:37:01 +0500
committerAbyss777 <abyss@fox5.ru>2016-10-25 12:37:01 +0500
commit55ec26e048eb9cd635bedf07726ab206e8b8536f (patch)
treedfbfd9be92d36d567f93ac036967e17601199fde /src/org
parent419a008c13e6d388e56ac1961a2fc6959df87ab4 (diff)
downloadtrackermap-server-55ec26e048eb9cd635bedf07726ab206e8b8536f.tar.gz
trackermap-server-55ec26e048eb9cd635bedf07726ab206e8b8536f.tar.bz2
trackermap-server-55ec26e048eb9cd635bedf07726ab206e8b8536f.zip
Expand expression
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/CoordinatesHandler.java2
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());
}