From 3c9662a9cec542e810308d1a7891d65e16481cf0 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 28 Jun 2019 12:40:41 -0300 Subject: [PATCH] Fix a typo in the line smoothing code. I don't think it causes any visual change. --- src/modules/graphics/Polyline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/Polyline.cpp b/src/modules/graphics/Polyline.cpp index 1201a65c6..dd637fe97 100644 --- a/src/modules/graphics/Polyline.cpp +++ b/src/modules/graphics/Polyline.cpp @@ -241,7 +241,7 @@ void BevelJoinPolyline::renderEdge(std::vector &anchors, std::vector &normals, float pixel_ { size_t k = vertex_count - i - 1; overdraw[vertex_count + i] = vertices[k]; - overdraw[vertex_count + i+1] = vertices[k] + normals[k] * (pixel_size / normals[i].getLength()); + overdraw[vertex_count + i+1] = vertices[k] + normals[k] * (pixel_size / normals[k].getLength()); } // if not looping, the outer overdraw vertices need to be displaced