pcbnew: zone refill issues in 10.99 with overlapping zones, islands and priorities
# Description
In the current Master (10.99.0) zones are not reclaimed properly if an island removal has been fired on the same net on a higher priority zone.
The following zone fill works fine:
{width="200" height="176"}
After cutting away a part of the High priority zone the low priority zone fails to reclaim area that the low priority zone has abandoned.
{width="200" height="176"}
[kicad_test_planes.kicad_pcb](/uploads/5c686e461b6d530ad12651b4af082433/kicad_test_planes.kicad_pcb)
This is how 10.0.0 builds the same file:
<span dir="">{width="209" height="194"}</span>
# Steps to reproduce
1. Open the included kicad_pcb file
2. Fill All Zones (B)
3. Observe zone 3 not being filled
4. Delete the trace cutting zone 1
5. Fill All Zones (B) again
6. Observe the zone 3 reclaiming the area from zone 2 island removal.
# KiCad Version
<!--Copy version information (from main menu Help->About KiCad ->Copy Version Info) and paste it between the triple backticks below to preserve the formatting.-->
```
Application: KiCad PCB Editor x86_64 on x86_64
Version: 10.99.0-unknown, release build
Libraries:
wxWidgets 3.2.8 GLX
FreeType 2.13.3
HarfBuzz 10.2.0
FontConfig 2.15.0
libcurl/8.14.1 OpenSSL/3.5.3 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.2 libssh2/1.11.1 nghttp2/1.64.0 librtmp/2.3 OpenLDAP/2.6.10
Platform: Ubuntu 25.10, 64 bit, Little endian, wxGTK, X11, wayland, ubuntu:GNOME, ubuntu
OpenGL: NVIDIA Corporation, NVIDIA GeForce RTX 3060/PCIe/SSE2, 4.6.0 NVIDIA 580.126.09, GLX 1.4
Build Info:
Date: Apr 14 2026 20:59:38
wxWidgets: 3.2.8 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.88.0
OCC: 7.8.1
Curl: 8.14.1
ngspice: 44.2
Compiler: Clang 20.1.8 with C++ ABI 1002
KICAD_IPC_API=ON
KICAD_USE_PCH=OFF
Locale:
Lang: en_US
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
```
issue