Files
Seth Hillbrand 9bf88d7394 Fix image rotation direction in BITMAP_BASE::Rotate
The wxImage::Rotate90() parameter means "clockwise" when true, but the
code was passing aRotateCCW directly. This caused the pixel rotation to
be opposite to the intended direction. The bug manifested as images
appearing incorrectly after save/reload, since the OpenGL renderer uses
m_originalImage with m_rotation compensation, while after reload the
already-rotated pixels have no rotation compensation.

Also updated the unit test that was written to match the buggy behavior,
and added a separate test case for CW rotation.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22719

(cherry picked from commit a02b5f2f1f)
2026-02-24 08:39:43 -08:00
..
2025-03-01 22:23:30 +00:00
2025-10-10 15:19:24 -07:00
2025-01-07 00:37:06 +00:00
2026-01-23 13:57:32 -08:00
2023-04-24 22:09:36 -04:00