1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Remove bogus offset when painting an SVG <path> box

This commit is contained in:
Andreas Kling 2021-09-18 00:34:54 +02:00
parent 684f7cca9f
commit 0bb680bacd

View file

@ -39,8 +39,7 @@ void SVGPathBox::paint(PaintContext& context, PaintPhase phase)
Gfx::AntiAliasingPainter painter { context.painter() };
auto& svg_context = context.svg_context();
auto offset = absolute_position() - effective_offset();
auto offset = absolute_position();
painter.translate(offset);
painter.fill_path(