7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 19:03:45 +00:00

Pcbnew, Properties panel: mask 2 properties irrelevant for pcb fields.

Color and Hyperlink properties have no meaning for pcb fields, but if set
created unreadable .kicad_pcb files.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18368
This commit is contained in:
jean-pierre charras 2024-07-14 11:48:11 +02:00
parent bff81a3d40
commit f2d32b64d6

View File

@ -273,5 +273,9 @@ static struct PCB_FIELD_DESC
propMgr.OverrideAvailability( TYPE_HASH( PCB_FIELD ), TYPE_HASH( EDA_TEXT ), _HKI( "Text" ),
isNotFootprintFootprint );
// These properties, inherited from EDA_TEXT, have no sense for the board editor
propMgr.Mask( TYPE_HASH( PCB_FIELD ), TYPE_HASH( EDA_TEXT ), _HKI( "Hyperlink" ) );
propMgr.Mask( TYPE_HASH( PCB_FIELD ), TYPE_HASH( EDA_TEXT ), _HKI( "Color" ) );
}
} _PCB_FIELD_DESC;