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