Skip to content

Commit 3689097

Browse files
committed
[Application] Close rendered polylines
1 parent 492df08 commit 3689097

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/application/LayoutPreviewWidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ QPolygonF polylinePath(const safecrowd::domain::Polyline2D& polyline, const Layo
154154
for (const auto& point : polyline.vertices) {
155155
path.append(transform.map(point));
156156
}
157+
if (polyline.closed && path.size() > 2) {
158+
path.append(path.front());
159+
}
157160
return path;
158161
}
159162

0 commit comments

Comments
 (0)