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; }