diff --git a/eeschema/sch_line.cpp b/eeschema/sch_line.cpp index 4e75b7392e..9c24e3deda 100644 --- a/eeschema/sch_line.cpp +++ b/eeschema/sch_line.cpp @@ -199,6 +199,14 @@ void SCH_LINE::Show( int nestLevel, std::ostream& os ) const #endif +void SCH_LINE::ViewGetLayers( int aLayers[], int& aCount ) const +{ + aCount = 2; + aLayers[0] = m_Layer; + aLayers[1] = LAYER_SELECTION_SHADOWS; +} + + const EDA_RECT SCH_LINE::GetBoundingBox() const { int width = 25; diff --git a/eeschema/sch_line.h b/eeschema/sch_line.h index 1970e765ae..9c16871022 100644 --- a/eeschema/sch_line.h +++ b/eeschema/sch_line.h @@ -120,6 +120,8 @@ public: int GetLineSize() const { return m_size; } + void ViewGetLayers( int aLayers[], int& aCount ) const override; + const EDA_RECT GetBoundingBox() const override; /**