Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
cc86c07f58
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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(),