aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-04-08 18:53:02 -0300
committerIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-04-08 18:53:02 -0300
commit9ff9232e779f7e137fa8b0cba2e0b424ff4879f9 (patch)
tree74505fae1ac3ad066bc21df3ae2ef97c1651836d /src/org/traccar
parent63dc8265e5e1bc55a2c32a46b37470395c65bcb4 (diff)
downloadtrackermap-server-9ff9232e779f7e137fa8b0cba2e0b424ff4879f9.tar.gz
trackermap-server-9ff9232e779f7e137fa8b0cba2e0b424ff4879f9.tar.bz2
trackermap-server-9ff9232e779f7e137fa8b0cba2e0b424ff4879f9.zip
just consider zero to check if defined
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/model/Geofence.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/model/Geofence.java b/src/org/traccar/model/Geofence.java
index acc81c203..8560d22e9 100644
--- a/src/org/traccar/model/Geofence.java
+++ b/src/org/traccar/model/Geofence.java
@@ -66,7 +66,7 @@ public class Geofence extends ScheduledModel {
geometry = new GeofencePolygon(area);
} else if (area.startsWith("LINESTRING")) {
final double distance = getDouble("polylineDistance");
- geometry = new GeofencePolyline(area, distance >= 1 ? distance
+ geometry = new GeofencePolyline(area, distance > 0 ? distance
: Context.getConfig().getDouble("geofence.polylineDistance", 25));
} else {
throw new ParseException("Unknown geometry type", 0);