From 26864888a3fbd67a4f524751b8324f7d98b96481 Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Sat, 23 Nov 2024 15:02:13 -0300 Subject: [PATCH] [drape] Fixed arrow drawing for dense polyline. Signed-off-by: Viktor Govako --- drape_frontend/route_shape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drape_frontend/route_shape.cpp b/drape_frontend/route_shape.cpp index 4c61d20e22..67026fb671 100644 --- a/drape_frontend/route_shape.cpp +++ b/drape_frontend/route_shape.cpp @@ -80,7 +80,7 @@ std::vector CalculatePoints(m2::PolylineD const & polyline, for (size_t i = 0; i + 1 < path.size(); i++) { double const dist = (path[i + 1] - path[i]).Length(); - if (fabs(dist) < 1e-5) + if (dist == 0) continue; double const l = len + dist;