Replace missing LAYER_DANGLING from global label view layers.

Fixes https://gitlab.com/kicad/code/kicad/issues/11796
This commit is contained in:
Jeff Young 2022-09-03 22:48:20 +01:00
parent 2d203bc975
commit 12171603d5
1 changed files with 7 additions and 6 deletions

View File

@ -1364,12 +1364,13 @@ bool SCH_GLOBALLABEL::ResolveTextVar( wxString* token, int aDepth ) const
void SCH_GLOBALLABEL::ViewGetLayers( int aLayers[], int& aCount ) const void SCH_GLOBALLABEL::ViewGetLayers( int aLayers[], int& aCount ) const
{ {
aCount = 5; aCount = 6;
aLayers[0] = LAYER_DEVICE; aLayers[0] = LAYER_DANGLING;
aLayers[1] = LAYER_INTERSHEET_REFS; aLayers[1] = LAYER_DEVICE;
aLayers[2] = LAYER_NETCLASS_REFS; aLayers[2] = LAYER_INTERSHEET_REFS;
aLayers[3] = LAYER_FIELDS; aLayers[3] = LAYER_NETCLASS_REFS;
aLayers[4] = LAYER_SELECTION_SHADOWS; aLayers[4] = LAYER_FIELDS;
aLayers[5] = LAYER_SELECTION_SHADOWS;
} }