From cf05da131f4d23fc496f070135407edbd06f4a73 Mon Sep 17 00:00:00 2001 From: MacDue Date: Fri, 14 Jul 2023 22:55:57 +0100 Subject: [PATCH] LibGfx/TinyVG: Close polygon path in OutlineFillPolygon --- Userland/Libraries/LibGfx/ImageFormats/TinyVGLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGfx/ImageFormats/TinyVGLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/TinyVGLoader.cpp index 3f7aa97dd2..1241f6b4cc 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/TinyVGLoader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/TinyVGLoader.cpp @@ -436,6 +436,7 @@ ErrorOr> TinyVGDecodedImageData::decode(St polygon.move_to(TRY(reader.read_point())); for (u32 i = 0; i < header.count - 1; i++) polygon.line_to(TRY(reader.read_point())); + polygon.close(); TRY(draw_commands.try_append(DrawCommand { move(polygon), move(header.fill_style), move(header.line_style), header.line_width })); break; }