Invalid Zone filling if a foorprint's text is rotated
Description
In pcbnew, when a text element of a footprint (for example the reference or the value) is moved to copper layer (for example TOP copper layer) and rotated, filling of a zone on this text is invalid (look like if the text rotation is not detected by fill zone system):
Example:
Steps to reproduce
- Open pcbnew without any pcb
- Add any footprint
- Change footprint reference layer from F.Silkscreen to F.Copper/F.Cu.
- To have more clear effect, change the content of the text to a long value (more than 4 chars)
- Rotate this text/reference
- Add a zone around the text on same copper layer
- Fill zone
Then filling exclusion around the text is made "as if" the text was not rotated.
KiCad Version
Commit 37c58859 from 6.0 branch:
Application: KiCad PCB Editor
Version: 6.0.5-unknown-nightly-202205262332, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.11
Platform: Linux 5.15.0-32-generic x86_64, 64 bit, Little endian, wxGTK, , tty
Build Info:
Date: May 26 2022 23:32:48
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.81.0
ngspice: 36
Compiler: GCC 11.2.0 with C++ ABI 1016
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
and same issue with 6.0.5 tag.
Nightly build (master branch) look to be ok.