DNP indication Cross-out rendered wrong for component rotated 45deg
Description
When footprint is rotated 45deg, the DNP Cross-out gerber output option draws a cross-out far too big than needed. For 0deg/90deg orientation, the cross-out is more proportional to footprint size.
Steps to reproduce
- Rotate SMD resistor 45deg
- Turn on DNP attribute
- Plot Gerber Fab layer, enable "Indicate DNP with Cross out"
- Compare cross-out style for component 0deg, 90deg, 45deg
Same issue with Recent 9.0 testing and 10.0rc
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 10.0.0-rc1.1-491-g8818f79dcf, release build
Libraries:
wxWidgets 3.3.2
FreeType 2.13.3
HarfBuzz 12.3.0
FontConfig 2.17.1
libcurl/8.18.0 Schannel zlib/1.3.1
Platform: Windows 11 (build 26200), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) Iris(R) Xe Graphics, 4.6.0 - Build 32.0.101.7026
Build Info:
Date: Feb 26 2026 06:41:06
wxWidgets: 3.3.2 (wchar_t,STL containers)
Boost: 1.90.0
OCC: 7.9.2
Curl: 8.18.0
ngspice: 45.2
Compiler: Visual C++ 1944 without C++ ABI
KICAD_IPC_API=ON
KICAD_USE_PCH=OFF
Locale:
Lang: en_GB
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
