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