PCB_CONTROL::unfilledZoneCheck(): skip rule areas: they are not filled by definition.

Fixes #10691
https://gitlab.com/kicad/code/kicad/issues/10691
This commit is contained in:
jean-pierre charras 2022-01-31 16:25:20 +01:00
parent 70d00689ca
commit 42dfdf8c38
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ void PCB_CONTROL::unfilledZoneCheck()
for( const ZONE* zone : board()->Zones() )
{
if( !zone->IsFilled() )
if( !zone->GetIsRuleArea() && !zone->IsFilled() )
{
unfilledZones = true;
break;
@ -229,7 +229,7 @@ void PCB_CONTROL::unfilledZoneCheck()
"if you wish to see all fills." ),
KeyNameFromKeyCode( PCB_ACTIONS::zoneFillAll.GetHotKey() ) );
infobar->ShowMessageFor( msg, 10000, wxICON_WARNING );
infobar->ShowMessageFor( msg, 5000, wxICON_WARNING );
}
}