From e350d10578290f7bbc8dedae18811dad837029c0 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Tue, 14 May 2019 10:42:42 -0700 Subject: [PATCH] fix crash in to_thick_boundary triggered in the 23rd map --- geom/src/polyline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geom/src/polyline.rs b/geom/src/polyline.rs index e4bc2b3a4a..5854ac9022 100644 --- a/geom/src/polyline.rs +++ b/geom/src/polyline.rs @@ -65,7 +65,7 @@ impl PolyLine { boundary_width: Distance, ) -> Option { assert!(self_width > boundary_width); - if self.length() <= boundary_width { + if self.length() <= boundary_width + EPSILON_DIST { return None; } let slice = self.exact_slice(boundary_width / 2.0, self.length() - boundary_width / 2.0);