Move line rendering to the proper layer.

This commit is contained in:
Jeff Young 2019-08-03 13:44:20 -06:00
parent c438686deb
commit 7349fe2e72
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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;
/**