From 55ec26e048eb9cd635bedf07726ab206e8b8536f Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 25 Oct 2016 12:37:01 +0500 Subject: Expand expression --- src/org/traccar/CoordinatesHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); } -- cgit v1.2.3