diff --git a/eeschema/sch_no_connect.cpp b/eeschema/sch_no_connect.cpp index 9dda77efa9..36a0c4f0af 100644 --- a/eeschema/sch_no_connect.cpp +++ b/eeschema/sch_no_connect.cpp @@ -79,6 +79,13 @@ const EDA_RECT SCH_NO_CONNECT::GetBoundingBox() const } +void SCH_NO_CONNECT::ViewGetLayers( int aLayers[], int& aCount ) const +{ + aLayers[0] = LAYER_NOCONNECT; + aCount = 1; +} + + void SCH_NO_CONNECT::GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) { DANGLING_END_ITEM item( NO_CONNECT_END, this, m_pos ); diff --git a/eeschema/sch_no_connect.h b/eeschema/sch_no_connect.h index f3402e5342..3a551929a7 100644 --- a/eeschema/sch_no_connect.h +++ b/eeschema/sch_no_connect.h @@ -60,6 +60,8 @@ public: void SwapData( SCH_ITEM* aItem ) override; + void ViewGetLayers( int aLayers[], int& aCount ) const override; + void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset, GR_DRAWMODE aDrawMode, COLOR4D aColor = COLOR4D::UNSPECIFIED ) override; diff --git a/eeschema/sch_view.h b/eeschema/sch_view.h index 2d584627a8..bac330a21f 100644 --- a/eeschema/sch_view.h +++ b/eeschema/sch_view.h @@ -44,7 +44,7 @@ static const LAYER_NUM SCH_LAYER_ORDER[] = LAYER_GP_OVERLAY, LAYER_SELECT_OVERLAY, LAYER_ERC_ERR, LAYER_ERC_WARN, LAYER_REFERENCEPART, LAYER_VALUEPART, LAYER_FIELDS, - LAYER_JUNCTION, + LAYER_JUNCTION, LAYER_NOCONNECT, LAYER_WIRE, LAYER_BUS, LAYER_DEVICE, LAYER_DEVICE_BACKGROUND,