eeschema: overlapping symbols are sometimes not plotted correctly
Description
Overlapping symbols that are displayed correctly in eeschema are not always plotted to PDF correctly. The drawing order is wrong, depending on when things are modified.
Steps to reproduce
- Create an instance of Device:Opamp_Dual. Overlap unit C with unit A, the way it is designed to be used.
- Plot the schematic to PDF.
- Observe the output. V- and V+ are probably visible on top of the symbol.
- Go back to the schematic. If V-/V+ were visible, grab unit A and move it to the right. Then move it back to its original place. Save, and plot the schematic again. (If V-/V+ weren't visible in the pdf, do the same thing but with unit C).
- Observe the output. Visibility of V- and V+ have changed.
In the case of creative usages of symbol overlap, this issue can change the meaning of the circuit to people reviewing it!
KiCad Version
Application: KiCad Schematic Editor
Version: 6.0.6-3a73a75311~116~ubuntu22.04.1, release build
Libraries:
wxWidgets 3.0.5
Platform: Linux 5.15.0-37-generic x86_64, 64 bit, Little endian, wxGTK, xubuntu, x11
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.83.1
ngspice: 36
Compiler: GCC 11.2.0 with C++ ABI 1016
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON