From 5234eb657f116108477910d2ed50b0ce0e2b4e96 Mon Sep 17 00:00:00 2001 From: hanchao Date: Sun, 14 Jun 2015 12:22:41 +0800 Subject: [PATCH] fix oundabout not closed #1450 --- src/mbgl/renderer/line_bucket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/renderer/line_bucket.cpp b/src/mbgl/renderer/line_bucket.cpp index f696874afe8..02db89cd45e 100644 --- a/src/mbgl/renderer/line_bucket.cpp +++ b/src/mbgl/renderer/line_bucket.cpp @@ -85,7 +85,7 @@ void LineBucket::addGeometry(const std::vector& vertices) { for (size_t i = 0; i < len; ++i) { if (closed && i == len - 1) { // if the line is closed, we treat the last vertex like the first - nextVertex = vertices[i]; + nextVertex = vertices[1]; } else if (i + 1 < len) { // just the next vertex nextVertex = vertices[i + 1];