From 12171603d5b4d618abc6c88651bd0401d0f543d9 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 3 Sep 2022 22:48:20 +0100 Subject: [PATCH] Replace missing LAYER_DANGLING from global label view layers. Fixes https://gitlab.com/kicad/code/kicad/issues/11796 --- eeschema/sch_label.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/eeschema/sch_label.cpp b/eeschema/sch_label.cpp index f8418ba8d9..70f48e630d 100644 --- a/eeschema/sch_label.cpp +++ b/eeschema/sch_label.cpp @@ -1364,12 +1364,13 @@ bool SCH_GLOBALLABEL::ResolveTextVar( wxString* token, int aDepth ) const void SCH_GLOBALLABEL::ViewGetLayers( int aLayers[], int& aCount ) const { - aCount = 5; - aLayers[0] = LAYER_DEVICE; - aLayers[1] = LAYER_INTERSHEET_REFS; - aLayers[2] = LAYER_NETCLASS_REFS; - aLayers[3] = LAYER_FIELDS; - aLayers[4] = LAYER_SELECTION_SHADOWS; + aCount = 6; + aLayers[0] = LAYER_DANGLING; + aLayers[1] = LAYER_DEVICE; + aLayers[2] = LAYER_INTERSHEET_REFS; + aLayers[3] = LAYER_NETCLASS_REFS; + aLayers[4] = LAYER_FIELDS; + aLayers[5] = LAYER_SELECTION_SHADOWS; }