[8.0.2] Plot bounding box affected by invisible text (hidden text GAL)
Description
When using the plot (from the GUI and/or Python API) the setting for LAYER_HIDDEN_TEXT affects the computation of the PCB bounding box, even for operations where this text is completely invisible. In particular: when trying to plot a layer different than the layer containing the hidden text.
As an illustration here is the output of plotting to postscript using 2:1 scale with and without hidden text enabled.
For reference here is the dialog:
And the PCB can be found here
As you can see the text isn't related to the F.Cu or Edge.Cuts, but is affecting the centering algorithm. BTW: the auto scale is just broken.
Steps to reproduce
- Just plot a board with the "Hidden Text" (Appearance | Objects) enabled, you'll notice this odd behavior (not found in 8.0.0/1)
KiCad Version
Application: KiCad PCB Editor x86_64 on x86_64
Version: 8.0.2+dfsg-1, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.15.0
libcurl/8.6.0 OpenSSL/3.1.5 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.0 nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.5.16
Platform: Debian GNU/Linux trixie/sid, 64 bit, Little endian, wxGTK, X11, ,
Build Info:
Date: May 1 2024 09:47:38
wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.83.0
OCC: 7.6.3
Curl: 8.7.1
ngspice: 42
Compiler: GCC 13.2.0 with C++ ABI 1018
Build settings: