pcbnew: Swap layers removes zones
Description
I changed my board from a 6-layer design to an 8-layer board. Since the two extra layers get added to the end of the inner layer stack I used the 'swap layers' tool to move things around. To my surprise the main ground-fill zone is now deleted from the board. Setting the zone to fill the new layers too doesn't change the result.
Steps to reproduce
- Open a multi-layer board
- Ensure there's a ground fill zone covering multiple layers
- Change the board to a type with 2 more layers (not sure if needed?)
- Swap one of the layers (doesn't have to involve any of the new layers)
- See the zone removed
KiCad Version
Application: KiCad PCB Editor x86_64 on x86_64
Version: 8.0.1-rc2-4-g1b3cf70eef, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.15.0
libcurl/8.7.1 OpenSSL/3.2.1 zlib/1.3.1 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 libssh2/1.11.0 nghttp2/1.60.0 nghttp3/1.2.0
Platform: Arch Linux, 64 bit, Little endian, wxGTK, Wayland, KDE, wayland
Build Info:
Date: Mar 12 2024 02:09:57
wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.83.0
OCC: 7.7.2
Curl: 8.6.0
ngspice: 42
Compiler: GCC 13.2.1 with C++ ABI 1018
Build settings:
KICAD_USE_EGL=ON
Edited by Stefan Hamminga