aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-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());
}