浏览代码

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.
Andreas Kling 2 年之前
父节点
当前提交
cc86c07f58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibGfx/Path.cpp

+ 1 - 1
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(),