Browse Source

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
jobs
jean-pierre charras 1 year ago
parent
commit
f2d32b64d6
  1. 4
      pcbnew/pcb_field.cpp

4
pcbnew/pcb_field.cpp

@ -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;
Loading…
Cancel
Save