diff options
author | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-04-08 18:53:02 -0300 |
---|---|---|
committer | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-04-08 18:53:02 -0300 |
commit | 9ff9232e779f7e137fa8b0cba2e0b424ff4879f9 (patch) | |
tree | 74505fae1ac3ad066bc21df3ae2ef97c1651836d /src/org/traccar/model | |
parent | 63dc8265e5e1bc55a2c32a46b37470395c65bcb4 (diff) | |
download | traccar-server-9ff9232e779f7e137fa8b0cba2e0b424ff4879f9.tar.gz traccar-server-9ff9232e779f7e137fa8b0cba2e0b424ff4879f9.tar.bz2 traccar-server-9ff9232e779f7e137fa8b0cba2e0b424ff4879f9.zip |
just consider zero to check if defined
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/Geofence.java | 2 |
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); |