Add PIN_NAME and PIN_NUM to the layer ordering
This ensures that pin names/numbers are shown above the graphics
This commit is contained in:
parent
c7868f0832
commit
1555b207a8
|
@ -1220,13 +1220,15 @@ const BOX2I LIB_PIN::ViewBBox() const
|
|||
|
||||
void LIB_PIN::ViewGetLayers( int aLayers[], int& aCount ) const
|
||||
{
|
||||
aCount = 4;
|
||||
aCount = 6;
|
||||
aLayers[0] = LAYER_DANGLING; // We don't really show dangling vs non-dangling (since there
|
||||
// are no connections in the symbol editor), but it's still
|
||||
// a good visual indication of which end of the pin is which.
|
||||
aLayers[1] = LAYER_DEVICE;
|
||||
aLayers[2] = LAYER_SELECTION_SHADOWS;
|
||||
aLayers[3] = LAYER_OP_CURRENTS;
|
||||
aLayers[4] = LAYER_PINNAM;
|
||||
aLayers[5] = LAYER_PINNUM;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ static const int SCH_LAYER_ORDER[] =
|
|||
LAYER_ERC_ERR, LAYER_ERC_WARN, LAYER_ERC_EXCLUSION, LAYER_DANGLING,
|
||||
LAYER_OP_VOLTAGES, LAYER_OP_CURRENTS,
|
||||
LAYER_REFERENCEPART, LAYER_VALUEPART, LAYER_FIELDS,
|
||||
LAYER_PINNUM, LAYER_PINNAM,
|
||||
LAYER_INTERSHEET_REFS, LAYER_NETCLASS_REFS,
|
||||
LAYER_BUS_JUNCTION, LAYER_JUNCTION, LAYER_NOCONNECT,
|
||||
LAYER_HIERLABEL, LAYER_GLOBLABEL, LAYER_LOCLABEL,
|
||||
|
|
Loading…
Reference in New Issue