From cc86c07f58a941520c545b02edf7e996ee0fba6e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 26 Apr 2023 16:56:03 +0200 Subject: [PATCH] LibGfx: Transform the x axis rotation for elliptical arcs Without this, copy_transformed() will create paths with bogus elliptical arcs. This was very noticeable with transformed ellipses in SVG. --- Userland/Libraries/LibGfx/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Path.cpp b/Userland/Libraries/LibGfx/Path.cpp index 088d726dad..a7e94a6376 100644 --- a/Userland/Libraries/LibGfx/Path.cpp +++ b/Userland/Libraries/LibGfx/Path.cpp @@ -363,7 +363,7 @@ Path Path::copy_transformed(Gfx::AffineTransform const& transform) const transform.map(segment->point()), transform.map(arc_segment.center()), transform.map(arc_segment.radii()), - arc_segment.x_axis_rotation(), + arc_segment.x_axis_rotation() + transform.rotation(), arc_segment.theta_1(), arc_segment.theta_delta(), arc_segment.large_arc(),