7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 14:51:41 +00:00

multichannel: conditional rule area expression property

This commit is contained in:
Tomasz Wlostowski 2024-07-15 23:34:26 +02:00
parent ae44a7ed3c
commit b84da7be02

View File

@ -1626,7 +1626,7 @@ static struct ZONE_DESC
return false;
};
auto isRuleArea =
auto isRuleArea =
[]( INSPECTABLE* aItem ) -> bool
{
if( ZONE* zone = dynamic_cast<ZONE*>( aItem ) )
@ -1675,8 +1675,8 @@ static struct ZONE_DESC
propMgr.AddProperty( new PROPERTY_ENUM<ZONE, RULE_AREA_TYPE>( _HKI( "Rule Area Type" ),
&ZONE::SetRuleAreaType,
&ZONE::GetRuleAreaType ) );
//.SetAvailableFunc( isRuleArea );
&ZONE::GetRuleAreaType ) )
.SetAvailableFunc( isRuleArea );
const wxString groupFill = _HKI( "Fill Style" );