From 69a1a4611bda1f3958603591379341dcdc820232 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 2 Dec 2023 20:15:43 +0000 Subject: [PATCH] Fill empty zones when auto-fill is on. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16234 (cherry picked from commit 1618beba2ccce5a0c5804cfb8342c32d19fe7f46) --- pcbnew/tools/zone_filler_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/zone_filler_tool.cpp b/pcbnew/tools/zone_filler_tool.cpp index 3505be2b08..390f5f7bee 100644 --- a/pcbnew/tools/zone_filler_tool.cpp +++ b/pcbnew/tools/zone_filler_tool.cpp @@ -197,7 +197,7 @@ int ZONE_FILLER_TOOL::ZoneFillDirty( const TOOL_EVENT& aEvent ) for( ZONE* zone : board()->Zones() ) { - if( m_dirtyZoneIDs.count( zone->m_Uuid ) ) + if( !zone->IsFilled() || m_dirtyZoneIDs.count( zone->m_Uuid ) ) toFill.push_back( zone ); }